summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-06-01 23:30:12 (UTC)
committer llornkcor <llornkcor>2002-06-01 23:30:12 (UTC)
commit7b145de0bf5dfe015e3c53fb4058315857e725a3 (patch) (unidiff)
tree6000c8844b749537bdf69c0b4cf124dda4eddb6b
parent4a8e6f982a1033b7f2b0406a238503f9acb9a7c5 (diff)
downloadopie-7b145de0bf5dfe015e3c53fb4058315857e725a3.zip
opie-7b145de0bf5dfe015e3c53fb4058315857e725a3.tar.gz
opie-7b145de0bf5dfe015e3c53fb4058315857e725a3.tar.bz2
buf gix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileSaver.cpp3
-rw-r--r--core/apps/textedit/textedit.cpp16
2 files changed, 13 insertions, 6 deletions
diff --git a/core/apps/textedit/fileSaver.cpp b/core/apps/textedit/fileSaver.cpp
index b1ddc0b..209a258 100644
--- a/core/apps/textedit/fileSaver.cpp
+++ b/core/apps/textedit/fileSaver.cpp
@@ -182,2 +182,3 @@ void fileSaver::listClicked(QListViewItem *selectedItem)
182{ 182{
183 if(selectedItem != NULL) {
183 QString strItem=selectedItem->text(0); 184 QString strItem=selectedItem->text(0);
@@ -218,3 +219,3 @@ void fileSaver::listClicked(QListViewItem *selectedItem)
218 219
219 220 }
220} 221}
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
@@ -512,3 +512,3 @@ void TextEdit::fileOpen()
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() )
@@ -750,2 +750,3 @@ bool TextEdit::save()
750 mode = buf.st_mode; 750 mode = buf.st_mode;
751
751 if(!fileIs) { 752 if(!fileIs) {
@@ -824,7 +825,12 @@ bool TextEdit::saveAs()
824 825
825 fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName); 826// QString str = OFileDialog::getSaveFileName( 2,"/");//,"", "*", this );
826 qDebug("wanna save filename "+currentFileName); 827// if(!str.isEmpty() ) {
827 fileSaveDlg->exec(); 828// openFile( str );
828 if( fileSaveDlg->result() == 1 ) { 829
830 fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName);
831 qDebug("wanna save filename "+currentFileName);
832 fileSaveDlg->exec();
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);