From a5bb70f53bc20f36f695ac5cd9f8b91163f694eb Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Wed, 13 Dec 2017 16:18:54 +0200 Subject: Wait for injected processes on MO close --- src/lockeddialog.h | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) (limited to 'src/lockeddialog.h') diff --git a/src/lockeddialog.h b/src/lockeddialog.h index 82a15a93..36c16429 100644 --- a/src/lockeddialog.h +++ b/src/lockeddialog.h @@ -17,16 +17,9 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see . */ -#ifndef LOCKEDDIALOG_H -#define LOCKEDDIALOG_H +#pragma once -#include "ilockedwaitingforprocess.h" -#include // for QDialog -#include // for Q_OBJECT, slots -#include // for QString - -class QResizeEvent; -class QWidget; +#include "lockeddialogbase.h" namespace Ui { class LockedDialog; @@ -40,7 +33,7 @@ namespace Ui { * data on which Mod Organizer works. After the UI is unlocked (manually or after the * external application closed) MO will refresh all of its data sources **/ -class LockedDialog : public QDialog, public ILockedWaitingForProcess +class LockedDialog : public LockedDialogBase { Q_OBJECT @@ -48,35 +41,17 @@ public: explicit LockedDialog(QWidget *parent = 0, bool unlockByButton = false); ~LockedDialog(); - /** - * @brief see if the user clicked the unlock-button - * - * @return true if the user clicked the unlock button - **/ - bool unlockForced() override; - - /** - * @brief set the name of the process being run - * @param name of process - */ void setProcessName(const QString &name) override; protected: - virtual void resizeEvent(QResizeEvent *event); - - virtual void reject(); + void unlock() override; private slots: void on_unlockButton_clicked(); private: - void unlock(); Ui::LockedDialog *ui; - bool m_Unlocked; - bool m_allowClose; }; - -#endif // LOCKEDDIALOG_H -- cgit v1.3.1