author | llornkcor <llornkcor> | 2002-05-16 13:39:56 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-16 13:39:56 (UTC) |
commit | 9e411b20fd2a1c347f410c836150aa56c9668707 (patch) (unidiff) | |
tree | 22a1a9f4e6d2d5eaa1bf701a1f5ada84db127ced | |
parent | 7e0215119151e3fd0536e6d4c7f5ad46adc4ef68 (diff) | |
download | opie-9e411b20fd2a1c347f410c836150aa56c9668707.zip opie-9e411b20fd2a1c347f410c836150aa56c9668707.tar.gz opie-9e411b20fd2a1c347f410c836150aa56c9668707.tar.bz2 |
fixed bug with remote rename
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 2 |
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 | |||
@@ -928,25 +928,25 @@ void AdvancedFm::localRename() | |||
928 | fileDlg->exec(); | 928 | fileDlg->exec(); |
929 | if( fileDlg->result() == 1 ) { | 929 | if( fileDlg->result() == 1 ) { |
930 | QString oldname = currentDir.canonicalPath() + "/" + curFile; | 930 | QString oldname = currentDir.canonicalPath() + "/" + curFile; |
931 | QString newName = currentDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist"; | 931 | QString newName = currentDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist"; |
932 | if( rename(oldname.latin1(), newName.latin1())== -1) | 932 | if( rename(oldname.latin1(), newName.latin1())== -1) |
933 | QMessageBox::message(tr("Note"),tr("Could not rename")); | 933 | QMessageBox::message(tr("Note"),tr("Could not rename")); |
934 | } | 934 | } |
935 | populateLocalView(); | 935 | populateLocalView(); |
936 | } | 936 | } |
937 | 937 | ||
938 | void AdvancedFm::remoteRename() | 938 | void AdvancedFm::remoteRename() |
939 | { | 939 | { |
940 | QString curFile = Local_View->currentItem()->text(0); | 940 | QString curFile = remote_View->currentItem()->text(0); |
941 | InputDialog *fileDlg; | 941 | InputDialog *fileDlg; |
942 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); | 942 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); |
943 | fileDlg->setInputText((const QString &)curFile); | 943 | fileDlg->setInputText((const QString &)curFile); |
944 | fileDlg->exec(); | 944 | fileDlg->exec(); |
945 | if( fileDlg->result() == 1 ) { | 945 | if( fileDlg->result() == 1 ) { |
946 | QString oldname = currentRemoteDir.canonicalPath() + "/" + curFile; | 946 | QString oldname = currentRemoteDir.canonicalPath() + "/" + curFile; |
947 | QString newName = currentRemoteDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist"; | 947 | QString newName = currentRemoteDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist"; |
948 | if( rename(oldname.latin1(), newName.latin1())== -1) | 948 | if( rename(oldname.latin1(), newName.latin1())== -1) |
949 | QMessageBox::message(tr("Note"),tr("Could not rename")); | 949 | QMessageBox::message(tr("Note"),tr("Could not rename")); |
950 | } | 950 | } |
951 | populateRemoteView(); | 951 | populateRemoteView(); |
952 | } | 952 | } |