author | sandman <sandman> | 2003-03-21 21:11:15 (UTC) |
---|---|---|
committer | sandman <sandman> | 2003-03-21 21:11:15 (UTC) |
commit | 299ab81f6b0bdc542311b1544fc84e1debd97a1f (patch) (side-by-side diff) | |
tree | 288a85eb4fc70a8297ee0e58a3d49bc70ea83655 | |
parent | 2afcd6fa6b581f5ec7b3e65fe312ceadebb37ee7 (diff) | |
download | opie-299ab81f6b0bdc542311b1544fc84e1debd97a1f.zip opie-299ab81f6b0bdc542311b1544fc84e1debd97a1f.tar.gz opie-299ab81f6b0bdc542311b1544fc84e1debd97a1f.tar.bz2 |
fix for bug #599:
O-Menu does not detect newly added programs until Opie restart
-rw-r--r-- | core/launcher/launcher.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 6764338..fc944e1 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp @@ -873,18 +873,28 @@ void Launcher::properties( AppLnk *appLnk ) } } } void Launcher::updateLink(const QString& link) { - if (link.isNull()) + bool notify_sm = false; + + if (link.isNull()) { updateTabs(); - else if (link.isEmpty()) + notify_sm = true; + } + else if (link.isEmpty()) { updateDocs(); - else + } + else { tabs->updateLink(link); + notify_sm = true; + } + + if ( notify_sm ) + QCopEnvelope e ( "QPE/TaskBar", "reloadApps()" ); } void Launcher::systemMessage( const QCString &msg, const QByteArray &data) { QDataStream stream( data, IO_ReadOnly ); if ( msg == "linkChanged(QString)" ) { |