-rw-r--r-- | core/launcher/launcher.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 17a30e6..1449269 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp @@ -677,15 +677,20 @@ void Launcher::updateLink(const QString& link) tabs->updateLink(link); } void Launcher::systemMessage( const QCString &msg, const QByteArray &data) { QDataStream stream( data, IO_ReadOnly ); - if ( msg == "linkChanged(QString)" ) { - QString link; - stream >> link; + if ( msg == "closing(QString)" ){ + QString app; + stream >> app; + qWarning("app closed %s", app.latin1() ); + MRUList::removeTask( app ); + }else if ( msg == "linkChanged(QString)" ) { + QString link; + stream >> link; if ( in_lnk_props ) { got_lnk_change = TRUE; lnk_change = link; } else { updateLink(link); } |