From 52a9a6fe51ad6aa026adc0d586f0bda86459cb75 Mon Sep 17 00:00:00 2001 From: cgugas Date: Tue, 3 Oct 2023 10:58:40 -0500 Subject: [PATCH] fixed race condition on bastard snooze kill --- aboutdialog.h | 2 +- bastardsnooze.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aboutdialog.h b/aboutdialog.h index cc0225c..7300f60 100644 --- a/aboutdialog.h +++ b/aboutdialog.h @@ -14,7 +14,7 @@ class AboutDialog : public QDialog public: explicit AboutDialog(QWidget *parent = 0); ~AboutDialog(); - const QString version="2.5.0"; + const QString version="2.5.1"; private: Ui::AboutDialog *ui; diff --git a/bastardsnooze.cpp b/bastardsnooze.cpp index 479b477..28fa29a 100644 --- a/bastardsnooze.cpp +++ b/bastardsnooze.cpp @@ -61,7 +61,7 @@ void BastardSnooze::checkMath() this->_schdule_list->removeScheduleByIndex(this->_curAlarm->listId); } this->hide(); - this->~BastardSnooze(); + this->deleteLater(); }else{ QMessageBox::critical(this,"WRONG","WRONG"); }