src/gui/kernel/qwidget_s60.cpp
changeset 34 a33bf25e6f72
parent 33 3e2da88830cd
child 37 758a864f9613
--- a/src/gui/kernel/qwidget_s60.cpp	Wed Aug 18 10:37:55 2010 +0300
+++ b/src/gui/kernel/qwidget_s60.cpp	Thu Sep 02 21:20:32 2010 +0300
@@ -1225,7 +1225,8 @@
         // At this point the backing store should already be destroyed
         // so we flush the command buffer to ensure that the freeing of
         // those resources and deleting the window can happen "atomically"
-        S60->wsSession().Flush();
+        if (qApp)
+            S60->wsSession().Flush();
     }
 }