mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
Fixed Action::removeEventListener.
--HG-- branch : dev
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user