author | llornkcor <llornkcor> | 2002-03-10 03:22:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-10 03:22:06 (UTC) |
commit | 115b05c0aa6e11d8a0265f2e6806bdf9d03a404a (patch) (side-by-side diff) | |
tree | 2d1648da4632fa2d248159a26abf2da30dff379e /core/apps/textedit/textedit.cpp | |
parent | 637cea2664defb5414a3897f70b616deba926ffe (diff) | |
download | opie-115b05c0aa6e11d8a0265f2e6806bdf9d03a404a.zip opie-115b05c0aa6e11d8a0265f2e6806bdf9d03a404a.tar.gz opie-115b05c0aa6e11d8a0265f2e6806bdf9d03a404a.tar.bz2 |
added a documents and hidden file buttons to fileSaver and fileBrowser
Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 78c4d8a..dafe1dc 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -558,13 +558,14 @@ void TextEdit::newFileOpen() } } delete browseForFiles; editor->setEdited( FALSE); edited1=FALSE; edited=FALSE; - setCaption(caption().right(caption().length()-1)); + if(caption().left(1)=="*") + setCaption(caption().right(caption().length()-1)); } #if 0 void TextEdit::slotFind() { FindDialog frmFind( "Text Editor", this ); @@ -689,13 +690,12 @@ void TextEdit::openFile( const DocLnk &f ) delete doc; doc = new DocLnk(f); editor->setText(txt); editor->setEdited( FALSE); edited1=FALSE; edited=FALSE; - setCaption(caption().right(caption().length()-1)); qDebug("openFile doclnk "+currentFileName); doc->setName(currentFileName); updateCaption(); } |