Inform user that background image loading failed
authorJohn Abraham
Tue, 01 Apr 2014 07:47:58 -0700
changeset 248 da0643394451
parent 247 364ed7cf17c1
child 249 e2dfcb5d35c6
Inform user that background image loading failed
animatorscene.cpp
--- a/animatorscene.cpp	Mon Mar 31 06:08:09 2014 -0700
+++ b/animatorscene.cpp	Tue Apr 01 07:47:58 2014 -0700
@@ -169,7 +169,10 @@
 
   QPixmap pix (fileName);
   if (pix.isNull ())
-    return;
+    {
+      AnimatorMode::getInstance ()->showPopup ("Failed to load background image:" + fileName);
+      return;
+    }
   if (m_backgroundImage)
     {
       removeItem (m_backgroundImage);