From 7c9d86d7c1667b4e5403613a450f8b81e52b7fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 8 Sep 2008 11:23:40 +0000 Subject: [PATCH] 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 --- src/apps/text_search/Model.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/apps/text_search/Model.cpp b/src/apps/text_search/Model.cpp index e6db621faf..75bacf484f 100644 --- a/src/apps/text_search/Model.cpp +++ b/src/apps/text_search/Model.cpp @@ -33,6 +33,9 @@ #include #include #include +#include + +#include "GlobalDefs.h" using std::nothrow; @@ -64,6 +67,12 @@ Model::Model() fFilePanelPath = path.Path(); else fFilePanelPath = "/boot/home"; + + entry_ref dummy; + if (be_roster->FindApp(PE_SIGNATURE, &dummy) == B_OK) { + // Pe is installed, change the default settings + fInvokePe = true; + } }