Remove Python dialogs when compiling without Python
authorGarrett Brown <garbearucla@gmail.com>
Fri, 7 Jun 2013 23:47:11 +0000 (16:47 -0700)
committerGarrett Brown <garbearucla@gmail.com>
Tue, 11 Jun 2013 20:41:38 +0000 (13:41 -0700)
cherry-picked from https://github.com/plexinc/plex-home-theater-public/commit/f76df3e72

xbmc/ApplicationMessenger.cpp

index c6a0410..c5788fa 100644 (file)
@@ -710,6 +710,7 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
       }
       break;
 
+#ifdef HAS_PYTHON
     case TMSG_GUI_PYTHON_DIALOG:
       {
         // This hack is not much better but at least I don't need to make ApplicationMessenger
@@ -718,6 +719,7 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
         ((CGUIWindow*)pMsg->lpVoid)->OnAction(caction);
       }
       break;
+#endif
 
     case TMSG_GUI_ACTION:
       {