From 5d2022c52149cb153fe09a61fb41e76eae0b21a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 13 Mar 2010 18:28:25 +0000 Subject: [PATCH] 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 --- src/apps/launchbox/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/launchbox/MainWindow.cpp b/src/apps/launchbox/MainWindow.cpp index 2be3deed0d..9e938039e3 100644 --- a/src/apps/launchbox/MainWindow.cpp +++ b/src/apps/launchbox/MainWindow.cpp @@ -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;