Commit 1f7263c6 authored by David Jarvie's avatar David Jarvie
Browse files

Cancel sound file playback if audio alarm edit dialog is closed after clicking Try

parent 038128b7
......@@ -3,6 +3,7 @@ KAlarm Change Log
=== Version 3.4.0 (KDE Applications 22.04) --- 9 February 2022 ===
* Allow calendars and date picker to be shown together in side panel [KDE Bug 440250]
* Shrink calendar list to remove empty space when too large.
* If audio alarm edit dialogue is closed after clicking Try, cancel sound file playback.
=== Version 3.3.6 (KDE Applications 21.12.3) --- 9 February 2022 ===
* Fix failure to create a missing calendar file after enabling a resource.
......
/*
* editdlgtypes.cpp - dialogs to create or edit alarm or alarm template types
* Program: kalarm
* SPDX-FileCopyrightText: 2001-2021 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2001-2022 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -1593,6 +1593,12 @@ EditAudioAlarmDlg::EditAudioAlarmDlg(bool Template, const KAEvent& event, bool n
connect(theApp(), &KAlarmApp::audioPlaying, this, &EditAudioAlarmDlg::slotAudioPlaying);
}
EditAudioAlarmDlg::~EditAudioAlarmDlg()
{
if (mMessageWindow)
MessageDisplay::stopAudio();
}
/******************************************************************************
* Return the window caption.
*/
......
/*
* editdlgtypes.h - dialogues to create or edit alarm or alarm template types
* Program: kalarm
* SPDX-FileCopyrightText: 2001-2021 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2001-2022 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -259,6 +259,7 @@ public:
explicit EditAudioAlarmDlg(bool Template, QWidget* parent = nullptr, GetResourceType = RES_PROMPT);
EditAudioAlarmDlg(bool Template, const KAEvent&, bool newAlarm, QWidget* parent = nullptr,
GetResourceType = RES_PROMPT, bool readOnly = false);
~EditAudioAlarmDlg() override;
// Methods to initialise values in the New Alarm dialogue.
// N.B. setTime() must be called first to set the date-only characteristic,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment