Revert "Keymap: Check return value of get_ref_for_path"

This reverts commit 14698e0432.
This commit is contained in:
John Scipione 2016-08-17 08:54:21 -07:00
parent e8fc10dee7
commit 661e7652d7
1 changed files with 10 additions and 16 deletions

View File

@ -133,7 +133,8 @@ KeymapWindow::KeymapWindow()
path.Append("Keymap");
entry_ref ref;
if (get_ref_for_path(path.Path(), &ref) == B_OK) {
get_ref_for_path(path.Path(), &ref);
BDirectory userKeymapsDir(&ref);
if (userKeymapsDir.InitCheck() != B_OK)
create_directory(path.Path(), S_IRWXU | S_IRWXG | S_IRWXO);
@ -143,13 +144,6 @@ KeymapWindow::KeymapWindow()
B_FILE_NODE, false, NULL);
fSavePanel = new BFilePanel(B_SAVE_PANEL, &messenger, &ref,
B_FILE_NODE, false, NULL);
} else {
BMessenger messenger(this);
fOpenPanel = new BFilePanel(B_OPEN_PANEL, &messenger, NULL,
B_FILE_NODE, false, NULL);
fSavePanel = new BFilePanel(B_SAVE_PANEL, &messenger, NULL,
B_FILE_NODE, false, NULL);
}
BRect windowFrame;
if (_LoadSettings(windowFrame) == B_OK) {