Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
1f7263c6
Commit
1f7263c6
authored
Feb 09, 2022
by
David Jarvie
Browse files
Cancel sound file playback if audio alarm edit dialog is closed after clicking Try
parent
038128b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Changelog
View file @
1f7263c6
...
...
@@ -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.
...
...
src/editdlgtypes.cpp
View file @
1f7263c6
/*
* editdlgtypes.cpp - dialogs to create or edit alarm or alarm template types
* Program: kalarm
* SPDX-FileCopyrightText: 2001-202
1
David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2001-202
2
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.
*/
...
...
src/editdlgtypes.h
View file @
1f7263c6
/*
* editdlgtypes.h - dialogues to create or edit alarm or alarm template types
* Program: kalarm
* SPDX-FileCopyrightText: 2001-202
1
David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2001-202
2
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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment