author | zecke <zecke> | 2003-12-06 11:48:47 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-12-06 11:48:47 (UTC) |
commit | 72336536db05459e3802b3be5032e55607985d0c (patch) (unidiff) | |
tree | 6920e4d51efa0b5dd6977e536575c45c1bf785b4 | |
parent | faaeb2cd28b47d79e9644e770622d141d315c195 (diff) | |
download | opie-72336536db05459e3802b3be5032e55607985d0c.zip opie-72336536db05459e3802b3be5032e55607985d0c.tar.gz opie-72336536db05459e3802b3be5032e55607985d0c.tar.bz2 |
quirk for opening renamed desktop files...
-rw-r--r-- | core/apps/textedit/textedit.cpp | 11 |
1 files changed, 9 insertions, 2 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,11 +715,18 @@ void TextEdit::openFile( const QString &f ) { | |||
715 | return; | 715 | return; |
716 | } | 716 | } |
717 | else | 717 | /* |
718 | * The problem is a file where Config(f).isValid() and it does not | ||
719 | * end with .desktop will be treated as desktop file | ||
720 | */ | ||
721 | else if (f.find(".desktop",0,true) != -1 ) | ||
718 | { | 722 | { |
719 | DocLnk sf(f); | 723 | DocLnk sf(f); |
720 | filer = sf.file(); | 724 | filer = sf.file(); |
721 | if(filer.right(1) == "/") | 725 | if(filer.right(1) == "/") |
722 | filer = f; | 726 | filer = f; |
727 | |||
723 | } | 728 | } |
729 | else | ||
730 | filer = f; | ||
724 | 731 | ||
725 | DocLnk nf; | 732 | DocLnk nf; |