From a25f54e3c29a936bb1bbfa66fa610c31c9b55808 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 28 Jan 2018 22:08:30 +0100 Subject: Use queued connection to thread-safe MainWindow error handling Up to now, errors produced by threads were not directly shown in the MainWindow. Code running in the GUI thread had to manually show the errors. This can be simplified by using Qt's queued connection as message passing facility. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'desktop-widgets/mainwindow.h') diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 18b03cb61..09b1fd9da 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -88,10 +88,6 @@ public: void enableDisableCloudActions(); void setCheckedActionFilterTags(bool checked); - // Shows errors that have accumulated. - // Must be called from GUI thread. - void showErrors(); - private slots: /* file menu action */ @@ -159,6 +155,7 @@ protected: signals: void startDiveSiteEdit(); + void showError(QString message); public slots: -- cgit v1.2.3-70-g09d2