summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 2461e26..81a4318 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -828,8 +828,9 @@ void AdvancedFm::okRename() {
828 QMessageBox::message(tr("Note"),tr("Could not rename")); 828 QMessageBox::message(tr("Note"),tr("Could not rename"));
829 else 829 else
830 oldName = ""; 830 oldName = "";
831 view->takeItem( view->currentItem() ); 831 QListViewItem *item = view->currentItem();
832 delete view->currentItem(); 832 view->takeItem( item );
833 delete item;
833 rePopulate(); 834 rePopulate();
834} 835}
835 836