diff options
-rw-r--r-- | korganizer/koeditorfreebusy.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/koeditorfreebusy.cpp b/korganizer/koeditorfreebusy.cpp index 0ee9d4f8c..88c5414b3 100644 --- a/korganizer/koeditorfreebusy.cpp +++ b/korganizer/koeditorfreebusy.cpp @@ -850,10 +850,13 @@ void KOEditorFreeBusy::removeAttendee() void KOEditorFreeBusy::clearSelection() const { KDGanttViewItem *item = mGanttView->selectedItem(); - if ( item ) + if (item) { mGanttView->setSelected( item, false ); + } mGanttView->repaint(); - item->repaint(); + if (item) { + item->repaint(); + } } void KOEditorFreeBusy::setSelected( int index ) |