author | harlekin <harlekin> | 2002-08-29 13:18:26 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-29 13:18:26 (UTC) |
commit | 4eb76f825e6dd06252316f4fe682d6ec4c7a1a2f (patch) (side-by-side diff) | |
tree | 037a96053aff72cc0e708f80f11570599b28c156 /core/launcher/desktop.cpp | |
parent | 178bd471d12a88862fb4ac1a17842ea0fd63c160 (diff) | |
download | opie-4eb76f825e6dd06252316f4fe682d6ec4c7a1a2f.zip opie-4eb76f825e6dd06252316f4fe682d6ec4c7a1a2f.tar.gz opie-4eb76f825e6dd06252316f4fe682d6ec4c7a1a2f.tar.bz2 |
fixed hardware start keys to be more flexible
-rw-r--r-- | core/launcher/desktop.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 1ec477c..5aba8dd 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -506,4 +506,5 @@ void Desktop::raiseDatebook() tempItem = cfg.readEntry("LeftEnd","Calender"); - if(tempItem == "Calender" || tempItem.isEmpty()) executeOrModify("Applications/datebook.desktop"); - else { + if ( tempItem == "Calender" || tempItem.isEmpty() ) { + tempItem = "datebook"; + } QCopEnvelope e("QPE/System","execute(QString)"); @@ -511,3 +512,2 @@ void Desktop::raiseDatebook() } -} @@ -519,4 +519,5 @@ void Desktop::raiseContacts() tempItem = cfg.readEntry("Left2nd","Address Book"); - if(tempItem == "Address Book" || tempItem.isEmpty()) executeOrModify("Applications/addressbook.desktop"); - else { + if ( tempItem == "Address Book" || tempItem.isEmpty() ) { + tempItem = "addressbook"; + } QCopEnvelope e("QPE/System","execute(QString)"); @@ -524,3 +525,2 @@ void Desktop::raiseContacts() } -} @@ -528,3 +528,3 @@ void Desktop::raiseMenu() { - Config cfg("qpe"); //F11, 'Menu' + Config cfg( "qpe" ); //F11, 'Menu cfg.setGroup("AppsKey"); @@ -547,4 +547,5 @@ void Desktop::raiseEmail() tempItem = cfg.readEntry("RightEnd","Mail"); - if(tempItem == "Mail" || tempItem == "qtmail" || tempItem.isEmpty()) executeOrModify("Applications/qtmail.desktop"); - else { + if ( tempItem == "Mail" || tempItem == "qtmail" || tempItem.isEmpty() ) { + tempItem = "mail"; + } QCopEnvelope e("QPE/System","execute(QString)"); @@ -552,3 +553,2 @@ void Desktop::raiseEmail() } -} |