summaryrefslogtreecommitdiffstats
path: root/korganizer/koagenda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koagenda.cpp')
-rw-r--r--korganizer/koagenda.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index b63f13030..953bb606a 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -1913,9 +1913,10 @@ void KOAgenda::selectItem(KOAgendaItem *item)
}
mSelectedItem = item;
mSelectedItem->select();
- assert( mSelectedItem->incidence() );
- mSelectedUid = mSelectedItem->incidence()->uid();
- emit incidenceSelected( mSelectedItem->incidence() );
+ Incidence *incidence = mSelectedItem->incidence();
+ assert( incidence );
+ mSelectedUid = incidence->uid();
+ emit incidenceSelected( incidence );
}
void KOAgenda::selectItemByUID( const QString& uid )