author | sandman <sandman> | 2002-10-06 03:26:59 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 03:26:59 (UTC) |
commit | a1ebad08d462e682554d39a9beabce125a374452 (patch) (unidiff) | |
tree | 254d7ddc5b257b278172af4952b2bec27b5df3b5 /core | |
parent | 2c16c8767fa5c16c0eeebc7008202a68a61a5308 (diff) | |
download | opie-a1ebad08d462e682554d39a9beabce125a374452.zip opie-a1ebad08d462e682554d39a9beabce125a374452.tar.gz opie-a1ebad08d462e682554d39a9beabce125a374452.tar.bz2 |
- support "Rotation" setting in .desktop applnk file
- changed properties dialog to make Rotation editable
- fixed a long-standing QPE bug:
launcher expects AppLnk::file() to return QString::null for *all real*
applnks (as opposed to doclnks) -- but AppLnk itself initializes this
field to the name of the dir, where the applnk is stored.
This is why qcop "QPE/System" "linkChanged(QString)" xyz.desktop cleared
a whole launcher tab
I hope I didn't break anything with this change ;)
-rw-r--r-- | core/launcher/launcherview.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index fa46543..6e63fca 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -492,6 +492,5 @@ bool LauncherIconView::removeLink(const QString& linkfile) | |||
492 | l = item->appLnk(); | 492 | l = item->appLnk(); |
493 | if ( l->linkFileKnown() && l->linkFile() == linkfile | 493 | if ( ( l->linkFileKnown() && ( l->linkFile() == linkfile )) |
494 | || l->fileKnown() && ( | 494 | || ( l->fileKnown() && ( l->file() == linkfile )) |
495 | l->file() == linkfile | 495 | || ( dl.fileKnown() && l->fileKnown() && ( dl.file() == l->file() )) ) { |
496 | || dl.isValid() && dl.file() == l->file() ) ) { | ||
497 | delete item; | 496 | delete item; |
@@ -504,5 +503,5 @@ bool LauncherIconView::removeLink(const QString& linkfile) | |||
504 | ++it; | 503 | ++it; |
505 | if ( l->linkFileKnown() && l->linkFile() == linkfile | 504 | if ( ( l->linkFileKnown() && ( l->linkFile() == linkfile )) |
506 | || l->file() == linkfile | 505 | || ( l->file() == linkfile ) |
507 | || dl.isValid() && dl.file() == l->file() ) { | 506 | || ( dl.fileKnown() && ( dl.file() == l->file() )) ) { |
508 | hidden.removeRef(l); | 507 | hidden.removeRef(l); |