* Favorites in filepanels are always folders, the type of favorites here
doesn't depend on the 'node flavor' of the parent filepanel. Fixes #3624 * Minor style fix git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32530 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
50f1b82d5b
commit
f2b42dbb1b
@ -856,8 +856,8 @@ TFavoritesConfigWindow::PromptForAdd()
|
||||
entry_ref ref;
|
||||
|
||||
// get reference to application directory
|
||||
get_ref_for_path(appPath, &ref);
|
||||
fAddPanel = new BFilePanel(B_OPEN_PANEL, &messenger,
|
||||
get_ref_for_path(appPath, &ref);
|
||||
fAddPanel = new BFilePanel(B_OPEN_PANEL, &messenger,
|
||||
&ref, fFilePanelNodeFlavors, true);
|
||||
} else
|
||||
fAddPanel = new BFilePanel(B_OPEN_PANEL, &messenger,
|
||||
|
@ -1162,7 +1162,7 @@ TFilePanel::MessageReceived(BMessage *message)
|
||||
|
||||
fConfigWindow = new TFavoritesConfigWindow(BRect(0, 0, 320, 24),
|
||||
"Configure Favorites", Feel() == B_MODAL_APP_WINDOW_FEEL,
|
||||
fNodeFlavors, BMessenger(this), &startref, -1, docs, folders);
|
||||
B_DIRECTORY_NODE, BMessenger(this), &startref, -1, docs, folders);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user