summaryrefslogtreecommitdiff
authorzecke <zecke>2004-03-25 20:13:01 (UTC)
committer zecke <zecke>2004-03-25 20:13:01 (UTC)
commit1db459f8a2e3846397bef77bd0f47b70a0e01612 (patch) (side-by-side diff)
tree4fc77e5b0f6f9cb77adee3e816e9c057c1c6264c
parent875064bec847768670d33cddf8553ce89ef4a5d5 (diff)
downloadopie-1db459f8a2e3846397bef77bd0f47b70a0e01612.zip
opie-1db459f8a2e3846397bef77bd0f47b70a0e01612.tar.gz
opie-1db459f8a2e3846397bef77bd0f47b70a0e01612.tar.bz2
Do not rely on Qt magic.
Get the item, take it from the list, delete it
Diffstat (more/less context) (show 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() {
QMessageBox::message(tr("Note"),tr("Could not rename"));
else
oldName = "";
- view->takeItem( view->currentItem() );
- delete view->currentItem();
+ QListViewItem *item = view->currentItem();
+ view->takeItem( item );
+ delete item;
rePopulate();
}