summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNash <nash@bsd-noobz.com>2014-08-31 17:30:46 +0700
committerNash <nash@bsd-noobz.com>2014-08-31 17:30:46 +0700
commit18e64a4ed111c60fab21bca6cb3f7c4ff5760547 (patch)
tree06209a07cca3bea7b0ed7ceca883c5f16630a75f
parent56be8e510befcded14c58318ec0ad1b01bc27231 (diff)
minor fix
-rw-r--r--opencv-qt-integration-2/python/ImageApp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/opencv-qt-integration-2/python/ImageApp.py b/opencv-qt-integration-2/python/ImageApp.py
index 7745711..afa00b1 100644
--- a/opencv-qt-integration-2/python/ImageApp.py
+++ b/opencv-qt-integration-2/python/ImageApp.py
@@ -46,7 +46,8 @@ class ImageApp(QWidget):
# Setup main layout
self.main_layout = QHBoxLayout()
self.main_layout.addWidget(self.image_label)
- self.main_layout.addLayout(self.buttons_layout)
+ if self.original_img is not None:
+ self.main_layout.addLayout(self.buttons_layout)
self.setLayout(self.main_layout)
self.setWindowTitle("Image Processing with Qt and OpenCV")