diff widgets/ProgressDialog.h @ 1267:b68f3162b5a8

Accept optional modality in constructor and fix subsequent possible side effect (re-opening dialog when just cancelled)
author Lucas Thompson <dev@lucas.im>
date Tue, 17 Apr 2018 10:47:14 +0100
parents 33b7f5e54d60
children 05d12869043e
line wrap: on
line diff
--- a/widgets/ProgressDialog.h	Thu Mar 01 18:02:22 2018 +0000
+++ b/widgets/ProgressDialog.h	Tue Apr 17 10:47:14 2018 +0100
@@ -25,8 +25,13 @@
     Q_OBJECT
     
 public:
-    ProgressDialog(QString message, bool cancellable,
-                   int timeBeforeShow = 0, QWidget *parent = 0);
+    ProgressDialog(
+        QString message,
+        bool cancellable,
+        int timeBeforeShow = 0,
+        QWidget *parent = 0,
+        Qt::WindowModality modality = Qt::NonModal
+    );
     virtual ~ProgressDialog();
 
     virtual bool isDefinite() const;