summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeokYeon Hwang <syeon.hwang@samsung.com>2014-11-05 21:03:53 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2014-11-05 21:03:53 -0800
commitd4ac342c286291fce36710f379e92acfec194097 (patch)
treea8eecb2933f4feaa7b6e88501bfd9a24555bb643
parentaf7640681494964d8de9557468ecb6cb502a3447 (diff)
parent46922ea0de70e7b8e20b5666c0129d5df16ce8f6 (diff)
downloadqemu-d4ac342c286291fce36710f379e92acfec194097.tar.gz
qemu-d4ac342c286291fce36710f379e92acfec194097.tar.bz2
qemu-d4ac342c286291fce36710f379e92acfec194097.zip
Merge "menu: execute an external process as detached mode" into features/qt_dr
-rw-r--r--tizen/src/ui/menu/contextmenu.cpp8
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;