-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 | |||
@@ -908,65 +908,65 @@ void AdvancedFm::remoteDelete() | |||
908 | QFile file(f); | 908 | QFile file(f); |
909 | file.remove(); | 909 | file.remove(); |
910 | // system( cmd.latin1()); | 910 | // system( cmd.latin1()); |
911 | populateRemoteView(); | 911 | populateRemoteView(); |
912 | } | 912 | } |
913 | break; | 913 | break; |
914 | case 1: | 914 | case 1: |
915 | // exit | 915 | // exit |
916 | break; | 916 | break; |
917 | }; | 917 | }; |
918 | } | 918 | } |
919 | } | 919 | } |
920 | } | 920 | } |
921 | 921 | ||
922 | void AdvancedFm::localRename() | 922 | void AdvancedFm::localRename() |
923 | { | 923 | { |
924 | QString curFile = Local_View->currentItem()->text(0); | 924 | QString curFile = Local_View->currentItem()->text(0); |
925 | InputDialog *fileDlg; | 925 | InputDialog *fileDlg; |
926 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); | 926 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); |
927 | fileDlg->setInputText((const QString &)curFile); | 927 | fileDlg->setInputText((const QString &)curFile); |
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 | } |
953 | 953 | ||
954 | void AdvancedFm::switchToLocalTab() | 954 | void AdvancedFm::switchToLocalTab() |
955 | { | 955 | { |
956 | TabWidget->setCurrentPage(0); | 956 | TabWidget->setCurrentPage(0); |
957 | Local_View->setFocus(); | 957 | Local_View->setFocus(); |
958 | } | 958 | } |
959 | 959 | ||
960 | void AdvancedFm::switchToRemoteTab() | 960 | void AdvancedFm::switchToRemoteTab() |
961 | { | 961 | { |
962 | TabWidget->setCurrentPage(1); | 962 | TabWidget->setCurrentPage(1); |
963 | Remote_View->setFocus(); | 963 | Remote_View->setFocus(); |
964 | } | 964 | } |
965 | 965 | ||
966 | void AdvancedFm::readConfig() | 966 | void AdvancedFm::readConfig() |
967 | { | 967 | { |
968 | Config cfg("AdvancedFm"); | 968 | Config cfg("AdvancedFm"); |
969 | } | 969 | } |
970 | 970 | ||
971 | void AdvancedFm::writeConfig() | 971 | void AdvancedFm::writeConfig() |
972 | { | 972 | { |