From c8725531173efd4444249e925c00898ccb046e29 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sat, 30 Jul 2011 18:31:22 +0200 Subject: [PATCH] poke syscoca immediately --- package.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.cpp b/package.cpp index d6a66ccea..8f31e9e3b 100644 --- a/package.cpp +++ b/package.cpp @@ -22,6 +22,8 @@ #include "package.h" +#include +#include #include #include #include @@ -880,6 +882,8 @@ bool PackagePrivate::installPackage(const QString &package, const QString &packa } } + QDBusInterface sycoca("org.kde.kded", "/kbuildsycoca"); + sycoca.asyncCall("recreate"); return true; } @@ -927,6 +931,8 @@ bool PackagePrivate::uninstallPackage(const QString &packageName, const QString return false; } + QDBusInterface sycoca("org.kde.kded", "/kbuildsycoca"); + sycoca.asyncCall("recreate"); return true; }