[haiku-commits] r35845 - haiku/trunk/src/apps/launchbox

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 13 Mar 2010 19:28:25 +0100 (CET)

Author: stippi
Date: 2010-03-13 19:28:25 +0100 (Sat, 13 Mar 2010)
New Revision: 35845
Changeset: http://dev.haiku-os.org/changeset/35845/haiku
Ticket: http://dev.haiku-os.org/ticket/5458

Modified:
   haiku/trunk/src/apps/launchbox/MainWindow.cpp
Log:
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.


Modified: haiku/trunk/src/apps/launchbox/MainWindow.cpp
===================================================================
--- haiku/trunk/src/apps/launchbox/MainWindow.cpp       2010-03-13 18:08:39 UTC 
(rev 35844)
+++ haiku/trunk/src/apps/launchbox/MainWindow.cpp       2010-03-13 18:28:25 UTC 
(rev 35845)
@@ -384,9 +384,9 @@
                        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;


Other related posts:

  • » [haiku-commits] r35845 - haiku/trunk/src/apps/launchbox - superstippi