Fixed Action::removeEventListener.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2019-12-12 03:13:06 -03:00
parent 35a9006b4c
commit a856357047
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.1, 2019-11-28T02:49:34. -->
<!-- Written by QtCreator 4.10.1, 2019-12-11T19:56:44. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
@@ -1526,7 +1526,7 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run %{buildDir}../../../bin/eepp-UIEditor-debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">eepp-UIEditor-debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
<value type="QString" key="RunConfiguration.Arguments">assets/layouts/test.xml assets/layouts/test.css</value>
<value type="QString" key="RunConfiguration.Arguments">-x assets/layouts/test.xml -c assets/layouts/test.css -u</value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>

View File

@@ -62,7 +62,7 @@ Action * Action::on(const Action::ActionType& actionType, const Action::ActionCa
void Action::removeEventListener( const Uint32& callbackId ) {
for ( auto it = mCallbacks.begin(); it != mCallbacks.end(); ++it ) {
std::map<Uint32, ActionCallback> event = it->second;
std::map<Uint32, ActionCallback>& event = it->second;
if ( event.erase( callbackId ) )
break;