Commit 4ea1f1e5 authored by Allen Winter's avatar Allen Winter
Browse files

in triggerDateForIncidence(), return (don't assert) if the specified

incidence doesn't have any alarms suddenly.  perhaps this happens
if the backend is unable to supply the item data somehow.
like in the case of this bug report where the calendar was inaccessible.

BUG: 293450
MERGE: 4.8, 4.9
FIXED-IN: 4.8.5
parent b4e27e1b
......@@ -812,7 +812,10 @@ KDateTime AlarmDialog::triggerDateForIncidence( const Incidence::Ptr &incidence,
KDateTime result;
Q_ASSERT( !incidence->alarms().isEmpty() );
if ( incidence->alarms().isEmpty() ) {
return result;
Alarm::Ptr alarm = incidence->alarms().first();
if ( incidence->recurs() ) {
Markdown is supported
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