author | llornkcor <llornkcor> | 2003-12-20 21:08:25 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-12-20 21:08:25 (UTC) |
commit | c7bad76e8d576fc0b6999775c89c724c6fa89158 (patch) (unidiff) | |
tree | ff4c08395c6c2f90efb75ca7f1037c5a3c77c830 /noncore/apps | |
parent | ef3584f1fd410e00d21d26d4ebbb9b6766669086 (diff) | |
download | opie-c7bad76e8d576fc0b6999775c89c724c6fa89158.zip opie-c7bad76e8d576fc0b6999775c89c724c6fa89158.tar.gz opie-c7bad76e8d576fc0b6999775c89c724c6fa89158.tar.bz2 |
fix rename
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 90c887f..26bc36d 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -802,2 +802,3 @@ void AdvancedFm::doRename(QListView * view) { | |||
802 | r.setX( view->contentsX() ); | 802 | r.setX( view->contentsX() ); |
803 | |||
803 | if ( r.width() > view->visibleWidth() ) | 804 | if ( r.width() > view->visibleWidth() ) |
@@ -812,5 +813,9 @@ void AdvancedFm::doRename(QListView * view) { | |||
812 | renameBox->installEventFilter( this ); | 813 | renameBox->installEventFilter( this ); |
814 | |||
813 | view->addChild( renameBox, r.x(), r.y() ); | 815 | view->addChild( renameBox, r.x(), r.y() ); |
816 | |||
814 | renameBox->resize( r.size() ); | 817 | renameBox->resize( r.size() ); |
818 | |||
815 | view->viewport()->setFocusProxy( renameBox ); | 819 | view->viewport()->setFocusProxy( renameBox ); |
820 | |||
816 | renameBox->setFocus(); | 821 | renameBox->setFocus(); |
@@ -822,2 +827,3 @@ void AdvancedFm::renameIt() { | |||
822 | if( !CurrentView()->currentItem()) return; | 827 | if( !CurrentView()->currentItem()) return; |
828 | |||
823 | QListView *thisView = CurrentView(); | 829 | QListView *thisView = CurrentView(); |
@@ -825,3 +831,2 @@ void AdvancedFm::renameIt() { | |||
825 | doRename( thisView ); | 831 | doRename( thisView ); |
826 | rePopulate(); | ||
827 | } | 832 | } |
@@ -830,2 +835,3 @@ void AdvancedFm::okRename() { | |||
830 | if( !CurrentView()->currentItem()) return; | 835 | if( !CurrentView()->currentItem()) return; |
836 | |||
831 | QString newName = renameBox->text(); | 837 | QString newName = renameBox->text(); |
@@ -836,3 +842,2 @@ void AdvancedFm::okRename() { | |||
836 | newName = path + newName; | 842 | newName = path + newName; |
837 | |||
838 | if( rename( oldName.latin1(), newName.latin1())== -1) | 843 | if( rename( oldName.latin1(), newName.latin1())== -1) |
@@ -841,3 +846,2 @@ void AdvancedFm::okRename() { | |||
841 | oldName = ""; | 846 | oldName = ""; |
842 | |||
843 | view->takeItem( view->currentItem() ); | 847 | view->takeItem( view->currentItem() ); |