mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: log debug message before and after the call in KAuthorization::execute()
otherwise it is bombardment of messages if the KAuthorization area is enabled Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8cb49b86db
commit
8d3250d896
1 changed files with 2 additions and 1 deletions
|
@ -161,10 +161,11 @@ int KAuthorization::execute(const QString &helper, const QString &method, const
|
|||
QDBusConnection::systemBus()
|
||||
);
|
||||
QDBusPendingReply<int> reply = kauthorizationinterface.asyncCall(QString::fromLatin1("execute"), method, arguments);
|
||||
kDebug(s_kauthorizationarea) << "Waiting for service call to finish" << helper;
|
||||
while (!reply.isFinished()) {
|
||||
kDebug(s_kauthorizationarea) << "Waiting for service call to finish" << helper;
|
||||
QCoreApplication::processEvents(QEventLoop::AllEvents, KAUTHORIZATION_TIMEOUT);
|
||||
}
|
||||
kDebug(s_kauthorizationarea) << "Done waiting for service call to finish" << helper;
|
||||
int result = KAuthorization::NoError;
|
||||
if (!reply.isValid()) {
|
||||
result = KAuthorization::DBusError;
|
||||
|
|
Loading…
Add table
Reference in a new issue