author | llornkcor <llornkcor> | 2002-06-01 23:30:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-01 23:30:12 (UTC) |
commit | 7b145de0bf5dfe015e3c53fb4058315857e725a3 (patch) (unidiff) | |
tree | 6000c8844b749537bdf69c0b4cf124dda4eddb6b /core/apps/textedit/textedit.cpp | |
parent | 4a8e6f982a1033b7f2b0406a238503f9acb9a7c5 (diff) | |
download | opie-7b145de0bf5dfe015e3c53fb4058315857e725a3.zip opie-7b145de0bf5dfe015e3c53fb4058315857e725a3.tar.gz opie-7b145de0bf5dfe015e3c53fb4058315857e725a3.tar.bz2 |
buf gix
Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index f89ed6d..f99f259 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -510,7 +510,7 @@ void TextEdit::fileOpen() | |||
510 | // if(cfg.readEntry("useOldFileDialog") == "TRUE") | 510 | // if(cfg.readEntry("useOldFileDialog") == "TRUE") |
511 | // b=TRUE; | 511 | // b=TRUE; |
512 | // if(!b) { | 512 | // if(!b) { |
513 | QString str = OFileDialog::getOpenFileName( 1,"/");//,"", "*", this ); | 513 | QString str = OFileDialog::getOpenFileName( 2,"/");//,"", "*", this ); |
514 | if(!str.isEmpty() ) | 514 | if(!str.isEmpty() ) |
515 | openFile( str ); | 515 | openFile( str ); |
516 | // } else { | 516 | // } else { |
@@ -748,6 +748,7 @@ bool TextEdit::save() | |||
748 | mode_t mode; | 748 | mode_t mode; |
749 | stat(file.latin1(), &buf); | 749 | stat(file.latin1(), &buf); |
750 | mode = buf.st_mode; | 750 | mode = buf.st_mode; |
751 | |||
751 | if(!fileIs) { | 752 | if(!fileIs) { |
752 | doc->setName( name); | 753 | doc->setName( name); |
753 | FileManager fm; | 754 | FileManager fm; |
@@ -822,11 +823,16 @@ bool TextEdit::saveAs() | |||
822 | } | 823 | } |
823 | 824 | ||
824 | 825 | ||
826 | // QString str = OFileDialog::getSaveFileName( 2,"/");//,"", "*", this ); | ||
827 | // if(!str.isEmpty() ) { | ||
828 | // openFile( str ); | ||
829 | |||
825 | fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName); | 830 | fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName); |
826 | qDebug("wanna save filename "+currentFileName); | 831 | qDebug("wanna save filename "+currentFileName); |
827 | fileSaveDlg->exec(); | 832 | fileSaveDlg->exec(); |
828 | if( fileSaveDlg->result() == 1 ) { | 833 | if( fileSaveDlg->result() == 1 ) { |
829 | QString fileNm=fileSaveDlg->selectedFileName; | 834 | QString fileNm=fileSaveDlg->selectedFileName; |
835 | // QString fileNm=srt; | ||
830 | qDebug("saving filename "+fileNm); | 836 | qDebug("saving filename "+fileNm); |
831 | QFileInfo fi(fileNm); | 837 | QFileInfo fi(fileNm); |
832 | currentFileName=fi.fileName(); | 838 | currentFileName=fi.fileName(); |