-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 1c95a97..b875228 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -715,5 +715,9 @@ void TextEdit::openFile( const QString &f ) { return; } - else + /* + * The problem is a file where Config(f).isValid() and it does not + * end with .desktop will be treated as desktop file + */ + else if (f.find(".desktop",0,true) != -1 ) { DocLnk sf(f); @@ -721,5 +725,8 @@ void TextEdit::openFile( const QString &f ) { if(filer.right(1) == "/") filer = f; + } + else + filer = f; DocLnk nf; |