From 406bed0f501ea131ba31dbdecdde8c1fe8b15806 Mon Sep 17 00:00:00 2001 From: bipolar Date: Wed, 06 Mar 2002 00:58:32 +0000 Subject: ljp: fixed setDocument opening the .desktop file and not the file it points too --- (limited to 'core/apps') 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 @@ -832,10 +832,13 @@ void TextEdit::updateCaption( const QString &name ) void TextEdit::setDocument(const QString& fileref) { bFromDocView = TRUE; + qDebug("setDocument "+fileref); + bFromDocView = TRUE; + if(fileref.find(".desktop",0,TRUE) == -1) { openFile(fileref); -// bFromDocView = TRUE; -// openFile(DocLnk(fileref)); -// showEditTools(); + } else { + openFile(DocLnk(fileref)); + } } void TextEdit::closeEvent( QCloseEvent *e ) -- cgit v0.9.0.2