Skip to content

Commit

Permalink
Button: no need to be marked “changed” if we didnt change.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradallred committed Dec 20, 2013
1 parent 8ff2750 commit 1ac840c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gemrb/core/GUI/Button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,6 @@ void Button::SetText(const char* string)
/** Set Event Handler */
bool Button::SetEvent(int eventType, EventHandler handler)
{
Changed = true;

switch (eventType) {
case IE_GUI_BUTTON_ON_PRESS:
ButtonOnPress = handler;
Expand Down Expand Up @@ -677,7 +675,7 @@ bool Button::SetEvent(int eventType, EventHandler handler)
default:
return false;
}

Changed = true;
return true;
}

Expand Down

0 comments on commit 1ac840c

Please sign in to comment.