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, 3 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 603f032..bc975f3 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -823,25 +823,27 @@ void TextEdit::updateCaption( const QString &name ) | |||
823 | if ( s.isEmpty() ) { | 823 | if ( s.isEmpty() ) { |
824 | s = tr( "Unnamed" ); | 824 | s = tr( "Unnamed" ); |
825 | currentFileName=s; | 825 | currentFileName=s; |
826 | } | 826 | } |
827 | 827 | ||
828 | setCaption( s + " - " + tr("Text Editor") ); | 828 | setCaption( s + " - " + tr("Text Editor") ); |
829 | } | 829 | } |
830 | } | 830 | } |
831 | 831 | ||
832 | void TextEdit::setDocument(const QString& fileref) | 832 | void TextEdit::setDocument(const QString& fileref) |
833 | { | 833 | { |
834 | bFromDocView = TRUE; | 834 | bFromDocView = TRUE; |
835 | openFile(DocLnk(fileref)); | 835 | openFile(fileref); |
836 | // bFromDocView = TRUE; | ||
837 | // openFile(DocLnk(fileref)); | ||
836 | // showEditTools(); | 838 | // showEditTools(); |
837 | } | 839 | } |
838 | 840 | ||
839 | void TextEdit::closeEvent( QCloseEvent *e ) | 841 | void TextEdit::closeEvent( QCloseEvent *e ) |
840 | { | 842 | { |
841 | if ( editorStack->visibleWidget() == fileSelector && !bFromDocView ) { | 843 | if ( editorStack->visibleWidget() == fileSelector && !bFromDocView ) { |
842 | e->ignore(); | 844 | e->ignore(); |
843 | repaint(); | 845 | repaint(); |
844 | // fileRevert(); | 846 | // fileRevert(); |
845 | 847 | ||
846 | } else { | 848 | } else { |
847 | bFromDocView = FALSE; | 849 | bFromDocView = FALSE; |