From 299ab81f6b0bdc542311b1544fc84e1debd97a1f Mon Sep 17 00:00:00 2001 From: sandman Date: Fri, 21 Mar 2003 21:11:15 +0000 Subject: fix for bug #599: O-Menu does not detect newly added programs until Opie restart --- (limited to 'core/launcher/launcher.cpp') 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 @@ -876,12 +876,22 @@ 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) -- cgit v0.9.0.2