author | zecke <zecke> | 2004-03-25 20:13:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-25 20:13:01 (UTC) |
commit | 1db459f8a2e3846397bef77bd0f47b70a0e01612 (patch) (side-by-side diff) | |
tree | 4fc77e5b0f6f9cb77adee3e816e9c057c1c6264c | |
parent | 875064bec847768670d33cddf8553ce89ef4a5d5 (diff) | |
download | opie-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
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 5 |
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();
|