From c84b7ab6d99cd9200d7a2daf42ddf6d8d85affce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Wed, 28 Sep 2016 12:14:41 +0200 Subject: [PATCH] Proposed fix for some progressbar related crashes --- Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp b/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp index 498170c2e6..8356dfc81d 100644 --- a/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp @@ -170,6 +170,8 @@ namespace caf { progDialog = new QProgressDialog(); progDialog->hide(); + progDialog->setAutoClose(false); + progDialog->setAutoReset(false); } return progDialog; } @@ -420,7 +422,6 @@ namespace caf { if (progressDialog() != NULL) { progressDialog()->hide(); - delete progressDialog(); } }