Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bos #18834 When SHAPER is deactivated, its panel should not be available in desktop...
[modules/shaper.git]
/
src
/
Events
/
Events_Loop.cpp
diff --git
a/src/Events/Events_Loop.cpp
b/src/Events/Events_Loop.cpp
index 2723057a964a43bd7ba065c24fada25add300ecc..a51dba6a63bf89c2b479abeb8ff1b576e84c7580 100644
(file)
--- a/
src/Events/Events_Loop.cpp
+++ b/
src/Events/Events_Loop.cpp
@@
-124,7
+124,7
@@
void Events_Loop::registerListener(Events_Listener* theListener, const Events_ID
aFindID->second[theSender] = std::list<Events_Listener*>();
aFindSender = aFindID->second.find(theSender);
}
aFindID->second[theSender] = std::list<Events_Listener*>();
aFindSender = aFindID->second.find(theSender);
}
- // check that listener was not registered wit
h
such parameters before
+ // check that listener was not registered wit
h
such parameters before
std::list<Events_Listener*>& aListeners = aFindSender->second;
for (std::list<Events_Listener*>::iterator aL = aListeners.begin(); aL != aListeners.end(); aL++)
if (*aL == theListener)
std::list<Events_Listener*>& aListeners = aFindSender->second;
for (std::list<Events_Listener*>::iterator aL = aListeners.begin(); aL != aListeners.end(); aL++)
if (*aL == theListener)
@@
-156,14
+156,14
@@
void Events_Loop::removeListener(Events_Listener* theListener)
aLMap.erase(aLIt->first);
myListeners[anIt->first] = aLMap;
if (aLMap.empty())
aLMap.erase(aLIt->first);
myListeners[anIt->first] = aLMap;
if (aLMap.empty())
- break; // avoid incrementation of the iterator if the
the
container is empty
+ break; // avoid incrementation of the iterator if the container is empty
}
aLIt++;
}
if (anIt->second.empty()) {
myListeners.erase(anIt->first);
if (myListeners.empty())
}
aLIt++;
}
if (anIt->second.empty()) {
myListeners.erase(anIt->first);
if (myListeners.empty())
- break; // avoid incrementation of the iterator if the
the
container is empty
+ break; // avoid incrementation of the iterator if the container is empty
}
anIt++;
}
}
anIt++;
}
@@
-174,7
+174,7
@@
void Events_Loop::removeListener(Events_Listener* theListener)
if (anImIt->second == theListener) {
myImmediateListeners.erase(anImIt->first);
if (myImmediateListeners.empty())
if (anImIt->second == theListener) {
myImmediateListeners.erase(anImIt->first);
if (myImmediateListeners.empty())
- break; // avoid incrementation of the iterator if the
the
container is empty
+ break; // avoid incrementation of the iterator if the container is empty
}
anImIt++;
}
}
anImIt++;
}