Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 40ea501..b276cbb 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -20,7 +20,6 @@ | |||
20 | // changes added by L. J. Potter Sun 02-17-2002 21:31:31 | 20 | // changes added by L. J. Potter Sun 02-17-2002 21:31:31 |
21 | 21 | ||
22 | #include "textedit.h" | 22 | #include "textedit.h" |
23 | #include "fileSaver.h" | ||
24 | #include "filePermissions.h" | 23 | #include "filePermissions.h" |
25 | #include "fontDialog.h" | 24 | #include "fontDialog.h" |
26 | 25 | ||
@@ -792,7 +791,6 @@ bool TextEdit::saveAs() | |||
792 | } | 791 | } |
793 | } | 792 | } |
794 | 793 | ||
795 | /* | ||
796 | QMap<QString, QStringList> map; | 794 | QMap<QString, QStringList> map; |
797 | map.insert(tr("All"), QStringList() ); | 795 | map.insert(tr("All"), QStringList() ); |
798 | QStringList text; | 796 | QStringList text; |
@@ -803,14 +801,6 @@ bool TextEdit::saveAs() | |||
803 | QString str = OFileDialog::getSaveFileName( 2,"/", QString::null, map); | 801 | QString str = OFileDialog::getSaveFileName( 2,"/", QString::null, map); |
804 | if(!str.isEmpty() ) { | 802 | if(!str.isEmpty() ) { |
805 | QString fileNm=str; | 803 | QString fileNm=str; |
806 | */ | ||
807 | |||
808 | fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName); | ||
809 | qDebug("wanna save filename "+currentFileName); | ||
810 | fileSaveDlg->exec(); | ||
811 | if( fileSaveDlg->result() == 1 ) { | ||
812 | QString fileNm=fileSaveDlg->selectedFileName; | ||
813 | |||
814 | 804 | ||
815 | qDebug("saving filename "+fileNm); | 805 | qDebug("saving filename "+fileNm); |
816 | QFileInfo fi(fileNm); | 806 | QFileInfo fi(fileNm); |
@@ -832,14 +822,15 @@ bool TextEdit::saveAs() | |||
832 | if ( !fm.saveFile( *doc, rt ) ) { | 822 | if ( !fm.saveFile( *doc, rt ) ) { |
833 | return false; | 823 | return false; |
834 | } | 824 | } |
835 | if( fileSaveDlg->filePermCheck->isChecked() ) { | 825 | |
826 | // if( fileSaveDlg->filePermCheck->isChecked() ) { | ||
836 | filePermissions *filePerm; | 827 | filePermissions *filePerm; |
837 | filePerm = new filePermissions(this, tr("Permissions"),true,0,(const QString &)fileNm); | 828 | filePerm = new filePermissions(this, tr("Permissions"),true,0,(const QString &)fileNm); |
838 | filePerm->exec(); | 829 | filePerm->exec(); |
839 | 830 | ||
840 | if( filePerm) | 831 | if( filePerm) |
841 | delete filePerm; | 832 | delete filePerm; |
842 | } | 833 | // } |
843 | } | 834 | } |
844 | } | 835 | } |
845 | editor->setEdited(TRUE); | 836 | editor->setEdited(TRUE); |
@@ -848,8 +839,6 @@ bool TextEdit::saveAs() | |||
848 | if(caption().left(1)=="*") | 839 | if(caption().left(1)=="*") |
849 | setCaption(caption().right(caption().length()-1)); | 840 | setCaption(caption().right(caption().length()-1)); |
850 | 841 | ||
851 | if(fileSaveDlg) | ||
852 | delete fileSaveDlg; | ||
853 | return true; | 842 | return true; |
854 | } //end saveAs | 843 | } //end saveAs |
855 | 844 | ||