From 36b6138f9d77060e9c732e7da686ce2bc4975d62 Mon Sep 17 00:00:00 2001 From: procount Date: Thu, 18 Feb 2021 17:05:12 +0000 Subject: [PATCH] Prevent closing progress dialog --- recovery/progressslideshowdialog.cpp | 5 +++++ recovery/progressslideshowdialog.h | 1 + 2 files changed, 6 insertions(+) diff --git a/recovery/progressslideshowdialog.cpp b/recovery/progressslideshowdialog.cpp index 4d08c238..3d2fcb7a 100644 --- a/recovery/progressslideshowdialog.cpp +++ b/recovery/progressslideshowdialog.cpp @@ -79,6 +79,11 @@ ProgressSlideshowDialog::~ProgressSlideshowDialog() delete ui; } +void ProgressSlideshowDialog::reject() +{ + /* prevent closing. */ +} + void ProgressSlideshowDialog::setLabelText(const QString &text) { QString txt = text; diff --git a/recovery/progressslideshowdialog.h b/recovery/progressslideshowdialog.h index 0ad2d616..75d8d878 100644 --- a/recovery/progressslideshowdialog.h +++ b/recovery/progressslideshowdialog.h @@ -36,6 +36,7 @@ public slots: void pauseIOaccounting(); void resumeIOaccounting(); void changeDrive(const QString &drive); + void reject(); protected: QString _drive;