diff options
-rw-r--r-- | tizen/src/ui/menu/contextmenu.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tizen/src/ui/menu/contextmenu.cpp b/tizen/src/ui/menu/contextmenu.cpp index 2b5c182a47..82a19c3128 100644 --- a/tizen/src/ui/menu/contextmenu.cpp +++ b/tizen/src/ui/menu/contextmenu.cpp @@ -395,8 +395,7 @@ void ContextMenu::slotShell() qDebug() << command << arguments; try { - QProcess *terminal = new QProcess(this); - terminal->start(command, arguments); + QProcess::startDetached(command, arguments); } catch (QString error) { QString msg = "Failed to open Shell : " + error; qDebug() << msg; @@ -443,7 +442,7 @@ void ContextMenu::slotControlPanel() QString command; #ifdef CONFIG_WIN32 - command = "java.exe"; + command = "javaw.exe"; #else command = "java"; #endif @@ -454,8 +453,7 @@ void ContextMenu::slotControlPanel() qDebug() << command << arguments; try { - QProcess *terminal = new QProcess(this); - terminal->start(command, arguments); + QProcess::startDetached(command, arguments); } catch (QString error) { QString msg = "Failed to open Control Panel : " + error; qDebug() << msg; |