-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 @@ -504,12 +504,12 @@ void Desktop::raiseDatebook() cfg.setGroup("AppsKey"); QString tempItem; 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)"); e << tempItem; } -} void Desktop::raiseContacts() { @@ -517,16 +517,16 @@ void Desktop::raiseContacts() cfg.setGroup("AppsKey"); QString tempItem; 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)"); e << tempItem; } -} void Desktop::raiseMenu() { - Config cfg("qpe"); //F11, 'Menu' + Config cfg( "qpe" ); //F11, 'Menu cfg.setGroup("AppsKey"); QString tempItem; tempItem = cfg.readEntry("Right2nd","Popup Menu"); @@ -545,12 +545,12 @@ void Desktop::raiseEmail() cfg.setGroup("AppsKey"); QString tempItem; 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)"); e << tempItem; } -} // autoStarts apps on resume and start void Desktop::execAutoStart() { |