[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/actions
From: Dario Freddi <drf () kde ! org>
Date: 2009-09-03 10:53:30
Message-ID: 1251975210.319648.9559.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1019340 by dafre:
Fix mass disconnection in KAction as well, and do nothing if actions match
M +6 -1 kaction.cpp
--- trunk/KDE/kdelibs/kdeui/actions/kaction.cpp #1019339:1019340
@@ -392,8 +392,13 @@
void KAction::setAuthAction(KAuth::Action *action)
{
+ if (d->authAction == action) {
+ return;
+ }
+
if (d->authAction) {
- disconnect(d->authAction->watcher(), 0, 0, 0);
+ disconnect(d->authAction->watcher(), SIGNAL(statusChanged(int)),
+ this, SLOT(authStatusChanged(int)));
//delete d->authAction;
d->authAction = 0;
if (!d->oldIcon.isNull()) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic