Bug 375615

Summary: "Failed to update alarm" error message appears after command alarm fails
Product: [Applications] kalarm Reporter: David Jarvie <djarvie>
Component: generalAssignee: David Jarvie <djarvie>
Status: CLOSED FIXED    
Severity: minor    
Priority: NOR    
Version: 2.11.10   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: KDE Applications 16.12.2

Description David Jarvie 2017-01-27 13:56:24 UTC
When a command alarm can't be executed (e.g. if the command to execute can't be found), in addition to the error message saying that execution failed, an additional, unnecessary error message "Failed to update alarm" is displayed. This only happens with a non-recurring alarm.
Comment 1 David Jarvie 2017-01-29 21:17:04 UTC
The reason was that the alarm was deleted before the command execution result was known. The alarm's execution status was then updated, but the alarm no longer existed, so the error was produced. KAlarm now checks if the alarm has already been deleted before attempting to update its status.

KAlarm version 2.11.13, commit 6cd6bbae49a4eff15da8d46e11f253b00245693c (Applications/16.12 branch).