diff options
author | SeokYeon Hwang <syeon.hwang@samsung.com> | 2014-11-05 21:03:53 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2014-11-05 21:03:53 -0800 |
commit | d4ac342c286291fce36710f379e92acfec194097 (patch) | |
tree | a8eecb2933f4feaa7b6e88501bfd9a24555bb643 | |
parent | af7640681494964d8de9557468ecb6cb502a3447 (diff) | |
parent | 46922ea0de70e7b8e20b5666c0129d5df16ce8f6 (diff) | |
download | qemu-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.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; |