From 8a34d4bbb06a25200be52aaaed5db47784606cfc Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Mon, 15 Nov 2010 00:18:50 +0000 Subject: Fixed crash in MusE::closeEvent() upon 'abort'. --- muse2/muse/app.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'muse2/muse/app.cpp') diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index b1130fba..28c5e545 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -1873,7 +1873,7 @@ void MusE::quitDoc() // closeEvent //--------------------------------------------------------- -void MusE::closeEvent(QCloseEvent*) +void MusE::closeEvent(QCloseEvent* event) { song->setStop(true); // @@ -1890,10 +1890,16 @@ void MusE::closeEvent(QCloseEvent*) tr("&Save"), tr("&Skip"), tr("&Abort"), 0, 2); if (n == 0) { if (!save()) // dont quit if save failed + { + event->ignore(); return; + } } else if (n == 2) + { + event->ignore(); return; + } } seqStop(); -- cgit v1.2.3