QTfrontend/HWApplication.cpp
changeset 5255 947025eeb5dc
parent 5252 ded882439548
child 5257 0bbdd47522b9
--- a/QTfrontend/HWApplication.cpp	Sat Jun 18 16:56:45 2011 +0200
+++ b/QTfrontend/HWApplication.cpp	Sat Jun 18 17:26:13 2011 +0200
@@ -29,11 +29,11 @@
 
 bool HWApplication::event(QEvent *event) {
     QFileOpenEvent *openEvent;
+
     switch (event->type()) {
         case QEvent::FileOpen:
             openEvent = (QFileOpenEvent *)event;
-            form->PlayDemoQuick(openEvent->file());
-
+            if (form) form->PlayDemoQuick(openEvent->file());
             return true;
             break;
         default: