mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kded: remove changed resources duplicates before emitting notifyDatabaseChanged() signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
20c0503ed6
commit
2315a4e564
1 changed files with 2 additions and 1 deletions
|
@ -795,11 +795,12 @@ int main(int argc, char **argv)
|
|||
if (args->isSet("signal"))
|
||||
{
|
||||
// Notify ALL applications that have a ksycoca object, using a signal
|
||||
changedResources.removeDuplicates();
|
||||
QDBusMessage signal = QDBusMessage::createSignal("/", "org.kde.KSycoca", "notifyDatabaseChanged" );
|
||||
signal << changedResources;
|
||||
|
||||
if (QDBusConnection::sessionBus().isConnected()) {
|
||||
kDebug() << "Emitting notifyDatabaseChanged" << changedResources;
|
||||
kDebug() << "Emitting notifyDatabaseChanged" << changedResources;
|
||||
QDBusConnection::sessionBus().send(signal);
|
||||
qApp->processEvents(); // make sure the dbus signal is sent before we quit.
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue