Show information if qjpeg cannot open an image.
authorviric@llimona
Tue, 13 Nov 2007 17:38:52 +0100
changeset 213 cdf16c93b654
parent 212 8afc05d983f4
child 214 4f8e0b41c1a5
Show information if qjpeg cannot open an image.
qjpeg/gui/MainWindow.cpp
--- a/qjpeg/gui/MainWindow.cpp	Tue Nov 13 17:18:10 2007 +0100
+++ b/qjpeg/gui/MainWindow.cpp	Tue Nov 13 17:38:52 2007 +0100
@@ -104,10 +104,13 @@
                 child->updateGeometry();
             } else
             {
-                statusBar()->showMessage(tr("La imatge té una mida diferent"), 2000);
+                statusBar()->showMessage(tr("La imatge té una mida diferent"),
+                        2000);
                 child->close();
             }
         } else {
+                statusBar()->showMessage(tr("No s'ha pogut obrir la imatge"),
+                        2000);
             child->close();
         }
     }