summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbimage.cpp')
-rw-r--r--utils/themeeditor/graphics/rbimage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbimage.cpp b/utils/themeeditor/graphics/rbimage.cpp
index 9d82fb110d..31159ecf75 100644
--- a/utils/themeeditor/graphics/rbimage.cpp
+++ b/utils/themeeditor/graphics/rbimage.cpp
@@ -25,6 +25,7 @@
#include "rbimage.h"
#include "parsetreenode.h"
+#include <rbscene.h>
RBImage::RBImage(QString file, int tiles, int x, int y, ParseTreeNode* node,
QGraphicsItem* parent)
@@ -56,6 +57,9 @@ RBImage::RBImage(QString file, int tiles, int x, int y, ParseTreeNode* node,
}
else
{
+ RBScene* s = dynamic_cast<RBScene*>(scene());
+ s->addWarning(QObject::tr("Image not found: ") + file);
+
size = QRectF(0, 0, 0, 0);
image = 0;
}