author | llornkcor <llornkcor> | 2005-08-11 10:10:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-11 10:10:40 (UTC) |
commit | 6040d26c56a95d9f5bd09688e22009fc5b5e124d (patch) (unidiff) | |
tree | 53ad03c346cc006d17093918d5cf6bbb09aa4b3b /core/apps | |
parent | 8938048502047f781447ed24351512cdca997a2e (diff) | |
download | opie-6040d26c56a95d9f5bd09688e22009fc5b5e124d.zip opie-6040d26c56a95d9f5bd09688e22009fc5b5e124d.tar.gz opie-6040d26c56a95d9f5bd09688e22009fc5b5e124d.tar.bz2 |
add opie-smb
-rw-r--r-- | core/apps/textedit/textedit.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index ca760bb..759e440 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -906,13 +906,13 @@ bool TextEdit::saveAs() { | |||
906 | if(dire==".") | 906 | if(dire==".") |
907 | dire = QPEApplication::documentDir(); | 907 | dire = QPEApplication::documentDir(); |
908 | QString str; | 908 | QString str; |
909 | if( !featureAutoSave) { | 909 | if( !featureAutoSave) { |
910 | str = OFileDialog::getSaveFileName( 2, | 910 | str = OFileDialog::getSaveFileName( 2, |
911 | dire, | 911 | dire, |
912 | filee, map); | 912 | filee, map); |
913 | } else | 913 | } else |
914 | str=currentFileName; | 914 | str = currentFileName; |
915 | 915 | ||
916 | if(!str.isEmpty()) { | 916 | if(!str.isEmpty()) { |
917 | QString fileNm=str; | 917 | QString fileNm=str; |
918 | 918 | ||
@@ -922,33 +922,33 @@ bool TextEdit::saveAs() { | |||
922 | if(doc) | 922 | if(doc) |
923 | // QString file = doc->file(); | 923 | // QString file = doc->file(); |
924 | // doc->removeFiles(); | 924 | // doc->removeFiles(); |
925 | delete doc; | 925 | delete doc; |
926 | DocLnk nf; | 926 | DocLnk nf; |
927 | nf.setType("text/plain"); | 927 | nf.setType("text/plain"); |
928 | nf.setFile( fileNm); | 928 | nf.setFile( fileNm); |
929 | doc = new DocLnk(nf); | 929 | doc = new DocLnk(nf); |
930 | // editor->setText(rt); | 930 | // editor->setText(rt); |
931 | odebug << "Saving file as "+currentFileName << oendl; | 931 | odebug << "Saving file as "+currentFileName << oendl; |
932 | doc->setName( fi.baseName() /*currentFileName*/); | 932 | doc->setName( fi.baseName() /*currentFileName*/); |
933 | updateCaption( currentFileName); | 933 | updateCaption( currentFileName); |
934 | 934 | ||
935 | FileManager fm; | 935 | FileManager fm; |
936 | if ( !fm.saveFile( *doc, rt ) ) { | 936 | if ( !fm.saveFile( *doc, rt ) ) { |
937 | QMessageBox::message(tr("Text Edit"),tr("Save Failed")); | 937 | QMessageBox::message(tr("Text Edit"),tr("Save Failed")); |
938 | return false; | 938 | return false; |
939 | } | 939 | } |
940 | 940 | ||
941 | if( filePerms ) { | 941 | if( filePerms ) { |
942 | filePermissions *filePerm; | 942 | filePermissions *filePerm; |
943 | filePerm = new filePermissions(this, | 943 | filePerm = new filePermissions(this, |
944 | tr("Permissions"),true, | 944 | tr("Permissions"),true, |
945 | 0,(const QString &)fileNm); | 945 | 0,(const QString &)fileNm); |
946 | QPEApplication::execDialog( filePerm ); | 946 | QPEApplication::execDialog( filePerm ); |
947 | 947 | ||
948 | if( filePerm) | 948 | if( filePerm) |
949 | delete filePerm; | 949 | delete filePerm; |
950 | } | 950 | } |
951 | // } | 951 | // } |
952 | editor->setEdited( false); | 952 | editor->setEdited( false); |
953 | edited1 = false; | 953 | edited1 = false; |
954 | edited = false; | 954 | edited = false; |