QTfrontend/ui/page/pagevideos.cpp
changeset 14634 8ffa0c27f434
parent 13696 b5a7f83fa607
child 14841 b9437746bffb
--- a/QTfrontend/ui/page/pagevideos.cpp	Thu Jan 17 22:48:14 2019 +0100
+++ b/QTfrontend/ui/page/pagevideos.cpp	Thu Jan 17 23:46:00 2019 +0100
@@ -48,6 +48,7 @@
 #include "gameuiconfig.h"
 #include "recorder.h"
 #include "ask_quit.h"
+#include "util/MessageDialog.h"
 
 static const QSize ThumbnailSize(350, 350*3/5);
 
@@ -315,6 +316,7 @@
     progressBar->setValue(0);
     connect(pRecorder, SIGNAL(onProgress(float)), this, SLOT(updateProgress(float)));
     connect(pRecorder, SIGNAL(encodingFinished(bool)), this, SLOT(encodingFinished(bool)));
+    connect(pRecorder, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowFatalErrorMessage(const QString &)), Qt::QueuedConnection);
     filesTable->setCellWidget(row, vcProgress, progressBar);
 
     numRecorders++;
@@ -742,3 +744,8 @@
     }
 }
 
+void PageVideos::ShowFatalErrorMessage(const QString & msg)
+{
+    MessageDialog::ShowFatalMessage(msg, this);
+}
+