From fac81fa3868918e98fc210539d37bd4918531ecd Mon Sep 17 00:00:00 2001 From: Patrick Linstruth Date: Fri, 26 Oct 2018 17:22:22 -0700 Subject: [PATCH] Fix regression in rdairplay(1) where it would close even if "No" was selected --- ChangeLog | 4 ++++ rdairplay/rdairplay.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index b3953f03..7e4f9229 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17894,3 +17894,7 @@ 2018-10-23 Fred Gleason * Fixed a bug in 'configure.ac' that caused detection of FLAC support to always fail. +2018-10-26 Patrick Linstruth + * Fixed a regression in rdairplay(1) that caused the application + to be closed even if "No" was pressed in the 'Exit RDAirPlay?' + dialog. diff --git a/rdairplay/rdairplay.cpp b/rdairplay/rdairplay.cpp index d0989992..3bacd34c 100644 --- a/rdairplay/rdairplay.cpp +++ b/rdairplay/rdairplay.cpp @@ -2135,6 +2135,7 @@ void MainWidget::closeEvent(QCloseEvent *e) if(QMessageBox::question(this,"RDAirPlay",tr("Exit RDAirPlay?"), QMessageBox::Yes,QMessageBox::No)!= QMessageBox::Yes) { + e->setAccepted(false); return; } for(unsigned i=0;i