diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-15 15:45:53 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-16 11:03:41 (GMT) |
| commit | eac109a563682422f67b19e2a04cb8d0628c7185 (patch) | |
| tree | c97687e7a0207afe09d6529d35ebec362397e0e3 /src/interface/SaveButton.cpp | |
| parent | 95bbd04d212a35d19af4f13375914971aeed758e (diff) | |
| download | powder-eac109a563682422f67b19e2a04cb8d0628c7185.zip powder-eac109a563682422f67b19e2a04cb8d0628c7185.tar.gz | |
fix possible crashes with save buttons and uninitialized renderer variables
Fixes second part of issue 179
Diffstat (limited to 'src/interface/SaveButton.cpp')
| -rw-r--r-- | src/interface/SaveButton.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interface/SaveButton.cpp b/src/interface/SaveButton.cpp index 66a6e66..35be432 100644 --- a/src/interface/SaveButton.cpp +++ b/src/interface/SaveButton.cpp @@ -230,13 +230,12 @@ void SaveButton::OnMouseUnclick(int x, int y, unsigned int button) if(isButtonDown) { + isButtonDown = false; if(isMouseInsideAuthor) DoAuthorAction(); else DoAction(); } - - isButtonDown = false; } void SaveButton::OnMouseClick(int x, int y, unsigned int button) |
