aboutsummaryrefslogtreecommitdiff
path: root/src/components/image.py
diff options
context:
space:
mode:
authortassaron2017-07-11 06:06:22 -0400
committertassaron2017-07-11 06:06:22 -0400
commit2e37dafd7036973a315b525f131850a6fb6d0b35 (patch)
tree090e5b29c706f38945209e33161b4cc9713782f2 /src/components/image.py
parent4c3920e6309b4e67e3d8d809dd0b5b6cd245fd0c (diff)
fixed various bugs
Diffstat (limited to 'src/components/image.py')
-rw-r--r--src/components/image.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/image.py b/src/components/image.py
index 94dcb83..07abc3f 100644
--- a/src/components/image.py
+++ b/src/components/image.py
@@ -47,7 +47,15 @@ class Component(Component):
return self.drawFrame(width, height)
def properties(self):
- return ['static']
+ props = ['static']
+ if not os.path.exists(self.imagePath):
+ props.append('error')
+ return props
+
+ def error(self):
+ if not os.path.exists(self.imagePath):
+ return "The image path selected on " \
+ "layer %s no longer exists!" % str(self.compPos)
def frameRender(self, layerNo, frameNo):
width = int(self.worker.core.settings.value('outputWidth'))