--- kdepim/abbrowser/browserwidget.cpp Fri Jan 26 15:07:28 2001 +++ kdepim-local/abbrowser/browserwidget.cpp Fri Jan 26 15:09:33 2001 @@ -895,9 +895,9 @@ qDebug( "clear" ); QListViewItem *item = listView->currentItem(); PabListViewItem *lvi = dynamic_cast< PabListViewItem* >(item); - QString entryKey = lvi->entryKey(); - ContactEntry *ce = lvi->getEntry(); if (lvi) { + QString entryKey = lvi->entryKey(); + ContactEntry *ce = lvi->getEntry(); PwDeleteCommand *command = new PwDeleteCommand( this, entryKey, ce ); UndoStack::instance()->push( command ); RedoStack::instance()->clear();