Fixed completely broken restoration of the path as the main means to refer to

an application location. It was basically always using the fallback of launching
apps by signature... Should fix #5458.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35845 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-03-13 18:28:25 +00:00
parent 38adad4cfb
commit 5d2022c521

View File

@ -384,9 +384,9 @@ MainWindow::LoadSettings(const BMessage* message)
button->SetTo(signature.String(), true);
}
BEntry entry(path, true);
entry_ref ref;
BEntry entry(&ref, true);
if (entry.Exists())
if (entry.Exists() && entry.GetRef(&ref) == B_OK)
button->SetTo(&ref);
const char* text;