From af814079c0eece5d101ff7d5f3ad36fb3730b6f7 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 9 Aug 2021 18:42:55 +0300 Subject: [PATCH] kded: use static QProcess::execute() method to execute kbuildsycoca Signed-off-by: Ivailo Monev --- kded/tests/kmimeassociationstest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kded/tests/kmimeassociationstest.cpp b/kded/tests/kmimeassociationstest.cpp index 69fee42a..8f626b85 100644 --- a/kded/tests/kmimeassociationstest.cpp +++ b/kded/tests/kmimeassociationstest.cpp @@ -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(); }