mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-19 04:50:16 +01:00
Fix a crash that will sometime occur on exit on Mac, caused by my recent changes
This commit is contained in:
parent
55e5eab157
commit
fad0ccc8c6
3
3rdparty/qocoa/qsearchfield_mac.mm
vendored
3
3rdparty/qocoa/qsearchfield_mac.mm
vendored
@ -89,7 +89,8 @@ public:
|
|||||||
|
|
||||||
-(void)controlTextDidEndEditing:(NSNotification*)notification {
|
-(void)controlTextDidEndEditing:(NSNotification*)notification {
|
||||||
// No Q_ASSERT here as it is called on destruction.
|
// No Q_ASSERT here as it is called on destruction.
|
||||||
if (pimpl)
|
if (!pimpl) return;
|
||||||
|
|
||||||
pimpl->textDidEndEditing();
|
pimpl->textDidEndEditing();
|
||||||
|
|
||||||
if ([[[notification userInfo] objectForKey:@"NSTextMovement"] intValue] == NSReturnTextMovement)
|
if ([[[notification userInfo] objectForKey:@"NSTextMovement"] intValue] == NSReturnTextMovement)
|
||||||
|
Loading…
Reference in New Issue
Block a user