kde-menu: debug type build fix

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-06 18:05:33 +03:00
parent 93f0db83f4
commit 62c3a8ff03

View file

@ -149,14 +149,14 @@ int main(int argc, char **argv)
QString command = KStandardDirs::findExe(KBUILDSYCOCA_EXENAME);
if (command.isEmpty())
{
error(4, i18n("Could not find '%1' executable.", KBUILDSYCOCA_EXENAME));
error(4, i18n("Could not find '%1' executable.", QLatin1String(KBUILDSYCOCA_EXENAME)));
}
QDBusMessage reply = KToolInvocation::klauncher()->call("kdeinit_exec_wait", command, args, QStringList(), QString());
if (reply.type() != QDBusMessage::ReplyMessage)
{
qWarning("Can not talk to klauncher!");
if (QProcess::execute(command, args) != 0) {
error(5, i18n("Could not execute '%1'.", KBUILDSYCOCA_EXENAME));
error(5, i18n("Could not execute '%1'.", QLatin1String(KBUILDSYCOCA_EXENAME)));
}
}
}