mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Fix issue with mouseDown:
This commit is contained in:
parent
ec3227d132
commit
b3ac2b292b
1 changed files with 6 additions and 1 deletions
|
@ -135,7 +135,12 @@
|
|||
|
||||
- (void) mouseDown: (NSEvent *)event
|
||||
{
|
||||
[super mouseDown: event];
|
||||
if (![self isEnabled])
|
||||
{
|
||||
[super mouseDown: event];
|
||||
return;
|
||||
}
|
||||
|
||||
if (_state == NSControlStateValueOn)
|
||||
{
|
||||
[self setState: NSControlStateValueOff];
|
||||
|
|
Loading…
Reference in a new issue