Change default settings to "Invoke in Pe" if Pe is installed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-09-08 11:23:40 +00:00
parent 61490d4560
commit 7c9d86d7c1
1 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,9 @@
#include <List.h> #include <List.h>
#include <MenuItem.h> #include <MenuItem.h>
#include <Path.h> #include <Path.h>
#include <Roster.h>
#include "GlobalDefs.h"
using std::nothrow; using std::nothrow;
@ -64,6 +67,12 @@ Model::Model()
fFilePanelPath = path.Path(); fFilePanelPath = path.Path();
else else
fFilePanelPath = "/boot/home"; fFilePanelPath = "/boot/home";
entry_ref dummy;
if (be_roster->FindApp(PE_SIGNATURE, &dummy) == B_OK) {
// Pe is installed, change the default settings
fInvokePe = true;
}
} }