summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-02-23 03:47:07 (UTC)
committer llornkcor <llornkcor>2003-02-23 03:47:07 (UTC)
commit2678456bf180bcf0ab7cfa112f3c723cf1d87c84 (patch) (side-by-side diff)
treeeb7edd83adc3204088f2f3e0ed3c0ff9e48f5040
parentd51ca116a8c4d234db93021ccad36506980c317f (diff)
downloadopie-2678456bf180bcf0ab7cfa112f3c723cf1d87c84.zip
opie-2678456bf180bcf0ab7cfa112f3c723cf1d87c84.tar.gz
opie-2678456bf180bcf0ab7cfa112f3c723cf1d87c84.tar.bz2
fix rename
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)
renameBox->setText( view->currentItem()->text(0) );
renameBox->selectAll();
renameBox->installEventFilter( this );
view->addChild( renameBox, r.x(), r.y() );
renameBox->resize( r.size() );
view->viewport()->setFocusProxy( renameBox );
renameBox->setFocus();
renameBox->show();
}
void AdvancedFm::localRename()
{
oldName = Local_View->currentItem()->text(0);
doRename(Local_View );
populateLocalView();
}
void AdvancedFm::remoteRename()
{
oldName = Remote_View->currentItem()->text(0);
- doRename(Local_View );
+ doRename(Remote_View );
populateRemoteView();
}
void AdvancedFm::okRename()
{
QString newName = renameBox->text();
cancelRename();
int tabs=0;
QListView * view;
tabs = TabWidget->getCurrentTab();
if ( tabs == 0)
{
view = Local_View;
QString path = currentDir.canonicalPath() + "/";
oldName = path + oldName;
newName = path + newName;
}
else
{
view = Remote_View;
QString path = currentRemoteDir.canonicalPath() + "/";
oldName = path + oldName;
newName = path + newName;
}