ui: add "profile" parameter for control panel
authorJinhyung Choi <jinh0.choi@samsung.com>
Fri, 7 Aug 2015 06:14:06 +0000 (15:14 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 7 Aug 2015 07:34:43 +0000 (16:34 +0900)
Change-Id: I13baa938e26de52b6afe54e7774318c7563ae9dd
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
tizen/src/ui/menu/contextmenu.cpp

index 1f087a0..f2cba97 100644 (file)
@@ -35,6 +35,7 @@
 #include "uiutil.h"
 #include "menu/advancedmenuitem.h"
 #include "menu/scalemenuitem.h"
+#include "emul_state.h"
 
 extern "C" {
 // FIXME: To avoid very complex header inclusion chains
@@ -600,6 +601,7 @@ void ContextMenu::slotControlPanel()
 
     QString basePortOpt = "base.port=" + QString::number(parent->uiInfo->basePort);
     QString vmNameOpt = "vmname=" + parent->uiInfo->vmName;
+    QString vmProfileOpt = "profile=" + QString::fromLocal8Bit(get_profile_name());
 
     QString ecpPath = QCoreApplication::applicationDirPath();
 #ifdef CONFIG_WIN32
@@ -659,7 +661,7 @@ void ContextMenu::slotControlPanel()
         arguments << httpProxyAddr << httpProxyPort;
     }
 
-    arguments << "-jar" << ecpPath << vmNameOpt << basePortOpt;
+    arguments << "-jar" << ecpPath << vmNameOpt << basePortOpt << vmProfileOpt;
     qDebug() << command << arguments;
 
     try {