mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 08:37:26 +00:00
Fix AsyncTaskDialog::interruptOnClose initialization
This commit is contained in:
parent
dd7a5f4eb6
commit
a076b2ef7b
@ -21,6 +21,9 @@ public:
|
||||
AsyncTaskDialog(AsyncTask::Ptr task, QWidget *parent = nullptr);
|
||||
~AsyncTaskDialog();
|
||||
|
||||
void setInterruptOnClose(bool v) { interruptOnClose = v; }
|
||||
bool getInterruptOnClose() { return interruptOnClose; }
|
||||
|
||||
public slots:
|
||||
void reject() override;
|
||||
|
||||
@ -36,7 +39,7 @@ private:
|
||||
AsyncTask::Ptr task;
|
||||
QTimer timer;
|
||||
|
||||
bool interruptOnClose;
|
||||
bool interruptOnClose = false;
|
||||
};
|
||||
|
||||
#endif //ASYNCTASKDIALOG_H
|
||||
|
@ -245,6 +245,7 @@ void OptionsDialog::setupAndStartAnalysis(int level, QList<QString> advanced)
|
||||
Core()->getAsyncTaskManager()->start(analTaskPtr);
|
||||
|
||||
AsyncTaskDialog *taskDialog = new AsyncTaskDialog(analTaskPtr);
|
||||
taskDialog->setInterruptOnClose(true);
|
||||
taskDialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
taskDialog->show();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user