aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.py
diff options
context:
space:
mode:
authortassaron2017-07-23 22:55:41 -0400
committertassaron2017-07-23 22:55:41 -0400
commitd92fc6373fd070f0ea303e9795eb7648d5cd9e90 (patch)
tree325ddcd123aed64a6c3336ffb5e58c8ed80e6c51 /src/mainwindow.py
parentd38109453cea17a31c335837c0029ad51fa3dda1 (diff)
ComponentError exception wraps previewRender
probably where errors are likeliest to be found
Diffstat (limited to 'src/mainwindow.py')
-rw-r--r--src/mainwindow.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.py b/src/mainwindow.py
index a32c1b4..03b8dde 100644
--- a/src/mainwindow.py
+++ b/src/mainwindow.py
@@ -578,7 +578,11 @@ class MainWindow(QtWidgets.QMainWindow):
detail=detail,
icon='Warning',
)
- self.stopVideo()
+ try:
+ self.stopVideo()
+ except AttributeError as e:
+ if 'videoWorker' not in str(e):
+ raise
def changeEncodingStatus(self, status):
self.encoding = status
@@ -684,8 +688,6 @@ class MainWindow(QtWidgets.QMainWindow):
# connect to signal that adds an asterisk when modified
self.core.selectedComponents[index].modified.connect(
self.updateComponentTitle)
- self.core.selectedComponents[index]._error.connect(
- self.videoThreadError)
self.pages.insert(index, self.core.selectedComponents[index].page)
stackedWidget.insertWidget(index, self.pages[index])