author | bipolar <bipolar> | 2002-03-06 00:58:32 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-06 00:58:32 (UTC) |
commit | 406bed0f501ea131ba31dbdecdde8c1fe8b15806 (patch) (unidiff) | |
tree | 11f375b25df3534e7d8ecd4120ee2df53a9791d3 | |
parent | fcb139a744cfe6c9521962595f15cd8369251c56 (diff) | |
download | opie-406bed0f501ea131ba31dbdecdde8c1fe8b15806.zip opie-406bed0f501ea131ba31dbdecdde8c1fe8b15806.tar.gz opie-406bed0f501ea131ba31dbdecdde8c1fe8b15806.tar.bz2 |
ljp: fixed setDocument opening the .desktop file and not the file it points too
-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index f138572..0f19da9 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -831,12 +831,15 @@ void TextEdit::updateCaption( const QString &name ) | |||
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 | qDebug("setDocument "+fileref); | ||
836 | bFromDocView = TRUE; | ||
837 | if(fileref.find(".desktop",0,TRUE) == -1) { | ||
835 | openFile(fileref); | 838 | openFile(fileref); |
836 | // bFromDocView = TRUE; | 839 | } else { |
837 | // openFile(DocLnk(fileref)); | 840 | openFile(DocLnk(fileref)); |
838 | // showEditTools(); | 841 | } |
839 | } | 842 | } |
840 | 843 | ||
841 | void TextEdit::closeEvent( QCloseEvent *e ) | 844 | void TextEdit::closeEvent( QCloseEvent *e ) |
842 | { | 845 | { |