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() | |||
558 | } | 558 | } |
559 | } | 559 | } |
560 | delete browseForFiles; | 560 | delete browseForFiles; |
561 | editor->setEdited( FALSE); | 561 | editor->setEdited( FALSE); |
562 | edited1=FALSE; | 562 | edited1=FALSE; |
563 | edited=FALSE; | 563 | edited=FALSE; |
564 | setCaption(caption().right(caption().length()-1)); | 564 | if(caption().left(1)=="*") |
565 | setCaption(caption().right(caption().length()-1)); | ||
565 | } | 566 | } |
566 | 567 | ||
567 | #if 0 | 568 | #if 0 |
568 | void TextEdit::slotFind() | 569 | void TextEdit::slotFind() |
569 | { | 570 | { |
570 | FindDialog frmFind( "Text Editor", this ); | 571 | FindDialog frmFind( "Text Editor", this ); |
@@ -689,13 +690,12 @@ void TextEdit::openFile( const DocLnk &f ) | |||
689 | delete doc; | 690 | delete doc; |
690 | doc = new DocLnk(f); | 691 | doc = new DocLnk(f); |
691 | editor->setText(txt); | 692 | editor->setText(txt); |
692 | editor->setEdited( FALSE); | 693 | editor->setEdited( FALSE); |
693 | edited1=FALSE; | 694 | edited1=FALSE; |
694 | edited=FALSE; | 695 | edited=FALSE; |
695 | setCaption(caption().right(caption().length()-1)); | ||
696 | 696 | ||
697 | qDebug("openFile doclnk "+currentFileName); | 697 | qDebug("openFile doclnk "+currentFileName); |
698 | doc->setName(currentFileName); | 698 | doc->setName(currentFileName); |
699 | updateCaption(); | 699 | updateCaption(); |
700 | } | 700 | } |
701 | 701 | ||