diff options
| author | jacob1 <jfu614@gmail.com> | 2013-03-04 20:59:45 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-03-04 20:59:45 (GMT) |
| commit | ad951eb9af20cd1a784fab39c41ade1c19dff2ca (patch) | |
| tree | 542cd8d78aa2569b694e223369eaa0d178547359 /src/interface/Button.cpp | |
| parent | 38573cc30e0d2dea191ad061020de399931dead9 (diff) | |
| download | powder-ad951eb9af20cd1a784fab39c41ade1c19dff2ca.zip powder-ad951eb9af20cd1a784fab39c41ade1c19dff2ca.tar.gz | |
fix being able to toggle disabled buttons (fixes save browser issue with this)
Diffstat (limited to 'src/interface/Button.cpp')
| -rw-r--r-- | src/interface/Button.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface/Button.cpp b/src/interface/Button.cpp index 4b9c5d9..95de0e8 100644 --- a/src/interface/Button.cpp +++ b/src/interface/Button.cpp @@ -176,6 +176,8 @@ void Button::OnMouseUnclick(int x, int y, unsigned int button) void Button::OnMouseClick(int x, int y, unsigned int button) { + if(!Enabled) + return; if(button == 1) { if(isTogglable) |
