-rw-r--r-- | core/apps/textedit/textedit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index dafe1dc..f031a0f 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -868,24 +868,27 @@ void TextEdit::updateCaption( const QString &name ) | |||
868 | } | 868 | } |
869 | 869 | ||
870 | void TextEdit::setDocument(const QString& fileref) | 870 | void TextEdit::setDocument(const QString& fileref) |
871 | { | 871 | { |
872 | bFromDocView = TRUE; | 872 | bFromDocView = TRUE; |
873 | qDebug("setDocument "+fileref); | 873 | qDebug("setDocument "+fileref); |
874 | bFromDocView = TRUE; | 874 | bFromDocView = TRUE; |
875 | if(fileref.find(".desktop",0,TRUE) == -1) { | 875 | if(fileref.find(".desktop",0,TRUE) == -1) { |
876 | openFile(fileref); | 876 | openFile(fileref); |
877 | } else { | 877 | } else { |
878 | openFile(DocLnk(fileref)); | 878 | openFile(DocLnk(fileref)); |
879 | } | 879 | } |
880 | editor->setEdited(TRUE); | ||
881 | edited1=FALSE; | ||
882 | edited=TRUE; | ||
880 | } | 883 | } |
881 | 884 | ||
882 | void TextEdit::closeEvent( QCloseEvent *e ) | 885 | void TextEdit::closeEvent( QCloseEvent *e ) |
883 | { | 886 | { |
884 | if ( editorStack->visibleWidget() == fileSelector && !bFromDocView ) { | 887 | if ( editorStack->visibleWidget() == fileSelector && !bFromDocView ) { |
885 | e->ignore(); | 888 | e->ignore(); |
886 | repaint(); | 889 | repaint(); |
887 | // fileRevert(); | 890 | // fileRevert(); |
888 | 891 | ||
889 | } else { | 892 | } else { |
890 | bFromDocView = FALSE; | 893 | bFromDocView = FALSE; |
891 | e->accept(); | 894 | e->accept(); |