menu: enable Always on Top menu 50/35650/1
authorGiWoong Kim <giwoong.kim@samsung.com>
Mon, 23 Feb 2015 02:44:00 +0000 (11:44 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Mon, 23 Feb 2015 02:44:00 +0000 (11:44 +0900)
include "config-host.h"
add null checking

Change-Id: I2805a21487de0b89aef904d00cdec354d7320246
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/ui/mainwindow.cpp
tizen/src/ui/menu/contextmenu.cpp

index e7f1bc1..fc85f46 100644 (file)
@@ -227,7 +227,7 @@ void MainWindow::openController(int index, int dockPos)
     }
 
     QAction *action = NULL;
-    if (popupMenu != NULL) {
+    if (popupMenu != NULL && popupMenu->getControllerMapper() != NULL) {
         action = (QAction *)popupMenu->getControllerMapper()->mapping(index);
     }
 
index a7a5ec9..4b7b560 100644 (file)
@@ -31,6 +31,7 @@
 #include <QtWidgets>
 
 #include "contextmenu.h"
+#include "emulator_common.h"
 #include "mainwindow.h"
 #include "menu/advancedmenuitem.h"
 #include "menu/scalemenuitem.h"