mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kded: use static QProcess::execute() method to execute kbuildsycoca
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
efdf9663fc
commit
af814079c0
1 changed files with 1 additions and 3 deletions
|
@ -432,11 +432,9 @@ private:
|
|||
// (The real KCM code simply does the refresh in a slot, asynchronously)
|
||||
QEventLoop loop;
|
||||
QObject::connect(KSycoca::self(), SIGNAL(databaseChanged(QStringList)), &loop, SLOT(quit()));
|
||||
QProcess proc;
|
||||
const QString kbuildsycoca = KStandardDirs::findExe(KBUILDSYCOCA_EXENAME);
|
||||
QVERIFY(!kbuildsycoca.isEmpty());
|
||||
proc.setProcessChannelMode(QProcess::MergedChannels); // silence kbuildsycoca output
|
||||
proc.execute(kbuildsycoca);
|
||||
QProcess::execute(kbuildsycoca);
|
||||
loop.exec();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue