summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -830,4 +830,5 @@ void AdvancedFm::okRename() {
oldName = "";
- view->takeItem( view->currentItem() );
- delete view->currentItem();
+ QListViewItem *item = view->currentItem();
+ view->takeItem( item );
+ delete item;
rePopulate();