From 18e64a4ed111c60fab21bca6cb3f7c4ff5760547 Mon Sep 17 00:00:00 2001 From: Nash Date: Sun, 31 Aug 2014 17:30:46 +0700 Subject: minor fix --- opencv-qt-integration-2/python/ImageApp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3