Better way of checking for 'null'ity of fti, related to the bugfix in commit 530074.

svn path=/branches/KDE/3.5/kdepim/; revision=532935
wilder-work
Ismail Onur Filiz 20 years ago
parent a27bf6081e
commit 4615d8968d
  1. 5
      kmfoldertree.cpp

@ -1472,13 +1472,12 @@ void KMFolderTree::slotRenameFolder(QListViewItem *item, int col,
KMFolderTreeItem *fti = static_cast<KMFolderTreeItem*>(item);
if (fti && fti->folder() && col != 0 && !currentFolder()->child())
if ((!fti) || (fti && fti->folder() && col != 0 && !currentFolder()->child()))
return;
QString fldName, oldFldName;
if ( fti )
oldFldName = fti->name(0);
oldFldName = fti->name(0);
if (!text.isEmpty())
fldName = text;

Loading…
Cancel
Save