[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [skrooge] skgbasegui: krazy2
From:       Stephane Mankowski <stephane () mankowski ! fr>
Date:       2013-10-12 16:24:54
Message-ID: E1VV1zq-0007wF-BH () scm ! kde ! org
[Download RAW message or body]

Git commit 74f94168395cbdb2107c7fce02c704dd98d29a13 by Stephane Mankowski.
Committed on 12/10/2013 at 16:24.
Pushed by smankowski into branch 'master'.

krazy2

M  +2    -1    skgbasegui/skgmainpanel.cpp

http://commits.kde.org/skrooge/74f94168395cbdb2107c7fce02c704dd98d29a13

diff --git a/skgbasegui/skgmainpanel.cpp b/skgbasegui/skgmainpanel.cpp
index 3c9b2a7..f84bb97 100644
--- a/skgbasegui/skgmainpanel.cpp
+++ b/skgbasegui/skgmainpanel.cpp
@@ -741,7 +741,8 @@ void SKGMainPanel::registerGlobalAction(const QString& iIdentifier, QAction* iAc
     if (iAction == NULL) {
         SKGTRACE << "WARNING: registerGlobalAction(" << iIdentifier << ",NULL)" << endl;
     } else {
-        foreach(const QString & id, d->m_registeredGlogalAction.keys()) {
+        QStringList keys=d->m_registeredGlogalAction.keys();
+        foreach(const QString& id, keys) {
             QPointer<QAction> act = d->m_registeredGlogalAction[id];
             if (act && iIdentifier != id && !act->shortcut().isEmpty() && act->shortcut() == \
iAction->shortcut()) {  SKGTRACE << "WARNING: The actions [" << iAction->text() << " (" << iIdentifier << \
")] and [" << act->text() << " (" << id << ")] has same shortcut [" << iAction->shortcut().toString() << \
"]" << endl;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic