summaryrefslogtreecommitdiff
authorzecke <zecke>2004-03-25 20:13:01 (UTC)
committer zecke <zecke>2004-03-25 20:13:01 (UTC)
commit1db459f8a2e3846397bef77bd0f47b70a0e01612 (patch) (unidiff)
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) (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