author | llornkcor <llornkcor> | 2002-03-13 01:05:41 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-13 01:05:41 (UTC) |
commit | fc49c34cfd2ce2adad2920daa368b25f42b8bad7 (patch) (unidiff) | |
tree | 8e5b7397427dcc0ab53d4090d72af2a38066f040 | |
parent | 8e9330a8626076a3dd289a1abbe218eccd3a1784 (diff) | |
download | opie-fc49c34cfd2ce2adad2920daa368b25f42b8bad7.zip opie-fc49c34cfd2ce2adad2920daa368b25f42b8bad7.tar.gz opie-fc49c34cfd2ce2adad2920daa368b25f42b8bad7.tar.bz2 |
fixed err when openinging a file from Docs tab, the edited asterik wasn't being set
-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 | |||
@@ -864,32 +864,35 @@ void TextEdit::updateCaption( const QString &name ) | |||
864 | } | 864 | } |
865 | 865 | ||
866 | setCaption( s + " - " + tr("Text Editor") ); | 866 | setCaption( s + " - " + tr("Text Editor") ); |
867 | } | 867 | } |
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(); |
892 | } | 895 | } |
893 | } | 896 | } |
894 | 897 | ||
895 | void TextEdit::accept() | 898 | void TextEdit::accept() |