summaryrefslogtreecommitdiff
path: root/core/launcher/launcher.cpp
Unidiff
Diffstat (limited to 'core/launcher/launcher.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp16
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
@@ -867,30 +867,40 @@ void Launcher::properties( AppLnk *appLnk )
867 connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *))); 867 connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *)));
868 prop.showMaximized(); 868 prop.showMaximized();
869 prop.exec(); 869 prop.exec();
870 in_lnk_props = FALSE; 870 in_lnk_props = FALSE;
871 if ( got_lnk_change ) { 871 if ( got_lnk_change ) {
872 updateLink(lnk_change); 872 updateLink(lnk_change);
873 } 873 }
874 } 874 }
875} 875}
876 876
877void Launcher::updateLink(const QString& link) 877void Launcher::updateLink(const QString& link)
878{ 878{
879 if (link.isNull()) 879 bool notify_sm = false;
880
881 if (link.isNull()) {
880 updateTabs(); 882 updateTabs();
881 else if (link.isEmpty()) 883 notify_sm = true;
884 }
885 else if (link.isEmpty()) {
882 updateDocs(); 886 updateDocs();
883 else 887 }
888 else {
884 tabs->updateLink(link); 889 tabs->updateLink(link);
890 notify_sm = true;
891 }
892
893 if ( notify_sm )
894 QCopEnvelope e ( "QPE/TaskBar", "reloadApps()" );
885} 895}
886 896
887void Launcher::systemMessage( const QCString &msg, const QByteArray &data) 897void Launcher::systemMessage( const QCString &msg, const QByteArray &data)
888{ 898{
889 QDataStream stream( data, IO_ReadOnly ); 899 QDataStream stream( data, IO_ReadOnly );
890 if ( msg == "linkChanged(QString)" ) { 900 if ( msg == "linkChanged(QString)" ) {
891 QString link; 901 QString link;
892 stream >> link; 902 stream >> link;
893 if ( in_lnk_props ) { 903 if ( in_lnk_props ) {
894 got_lnk_change = TRUE; 904 got_lnk_change = TRUE;
895 lnk_change = link; 905 lnk_change = link;
896 } else { 906 } else {