summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 2ddcabc..e7c0b6a 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -1074,49 +1074,49 @@ void AdvancedFm::doRename(QListView * view)
1074 1074
1075 renameBox->setText( view->currentItem()->text(0) ); 1075 renameBox->setText( view->currentItem()->text(0) );
1076 1076
1077 renameBox->selectAll(); 1077 renameBox->selectAll();
1078 renameBox->installEventFilter( this ); 1078 renameBox->installEventFilter( this );
1079 view->addChild( renameBox, r.x(), r.y() ); 1079 view->addChild( renameBox, r.x(), r.y() );
1080 renameBox->resize( r.size() ); 1080 renameBox->resize( r.size() );
1081 view->viewport()->setFocusProxy( renameBox ); 1081 view->viewport()->setFocusProxy( renameBox );
1082 renameBox->setFocus(); 1082 renameBox->setFocus();
1083 renameBox->show(); 1083 renameBox->show();
1084 1084
1085} 1085}
1086 1086
1087 1087
1088void AdvancedFm::localRename() 1088void AdvancedFm::localRename()
1089{ 1089{
1090 oldName = Local_View->currentItem()->text(0); 1090 oldName = Local_View->currentItem()->text(0);
1091 doRename(Local_View ); 1091 doRename(Local_View );
1092 populateLocalView(); 1092 populateLocalView();
1093} 1093}
1094 1094
1095void AdvancedFm::remoteRename() 1095void AdvancedFm::remoteRename()
1096{ 1096{
1097 oldName = Remote_View->currentItem()->text(0); 1097 oldName = Remote_View->currentItem()->text(0);
1098 doRename(Local_View ); 1098 doRename(Remote_View );
1099 populateRemoteView(); 1099 populateRemoteView();
1100} 1100}
1101 1101
1102void AdvancedFm::okRename() 1102void AdvancedFm::okRename()
1103{ 1103{
1104 QString newName = renameBox->text(); 1104 QString newName = renameBox->text();
1105 cancelRename(); 1105 cancelRename();
1106 int tabs=0; 1106 int tabs=0;
1107 QListView * view; 1107 QListView * view;
1108 tabs = TabWidget->getCurrentTab(); 1108 tabs = TabWidget->getCurrentTab();
1109 if ( tabs == 0) 1109 if ( tabs == 0)
1110 { 1110 {
1111 view = Local_View; 1111 view = Local_View;
1112 QString path = currentDir.canonicalPath() + "/"; 1112 QString path = currentDir.canonicalPath() + "/";
1113 oldName = path + oldName; 1113 oldName = path + oldName;
1114 newName = path + newName; 1114 newName = path + newName;
1115 } 1115 }
1116 else 1116 else
1117 { 1117 {
1118 view = Remote_View; 1118 view = Remote_View;
1119 QString path = currentRemoteDir.canonicalPath() + "/"; 1119 QString path = currentRemoteDir.canonicalPath() + "/";
1120 oldName = path + oldName; 1120 oldName = path + oldName;
1121 newName = path + newName; 1121 newName = path + newName;
1122 } 1122 }