summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-05-16 13:39:56 (UTC)
committer llornkcor <llornkcor>2002-05-16 13:39:56 (UTC)
commit9e411b20fd2a1c347f410c836150aa56c9668707 (patch) (side-by-side diff)
tree22a1a9f4e6d2d5eaa1bf701a1f5ada84db127ced
parent7e0215119151e3fd0536e6d4c7f5ad46adc4ef68 (diff)
downloadopie-9e411b20fd2a1c347f410c836150aa56c9668707.zip
opie-9e411b20fd2a1c347f410c836150aa56c9668707.tar.gz
opie-9e411b20fd2a1c347f410c836150aa56c9668707.tar.bz2
fixed bug with remote rename
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 18952c3..9606269 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -924,33 +924,33 @@ void AdvancedFm::localRename()
QString curFile = Local_View->currentItem()->text(0);
InputDialog *fileDlg;
fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
fileDlg->setInputText((const QString &)curFile);
fileDlg->exec();
if( fileDlg->result() == 1 ) {
QString oldname = currentDir.canonicalPath() + "/" + curFile;
QString newName = currentDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist";
if( rename(oldname.latin1(), newName.latin1())== -1)
QMessageBox::message(tr("Note"),tr("Could not rename"));
}
populateLocalView();
}
void AdvancedFm::remoteRename()
{
- QString curFile = Local_View->currentItem()->text(0);
+ QString curFile = remote_View->currentItem()->text(0);
InputDialog *fileDlg;
fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
fileDlg->setInputText((const QString &)curFile);
fileDlg->exec();
if( fileDlg->result() == 1 ) {
QString oldname = currentRemoteDir.canonicalPath() + "/" + curFile;
QString newName = currentRemoteDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist";
if( rename(oldname.latin1(), newName.latin1())== -1)
QMessageBox::message(tr("Note"),tr("Could not rename"));
}
populateRemoteView();
}
void AdvancedFm::switchToLocalTab()
{
TabWidget->setCurrentPage(0);