mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +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
5
3rdparty/qocoa/qsearchfield_mac.mm
vendored
5
3rdparty/qocoa/qsearchfield_mac.mm
vendored
@ -89,8 +89,9 @@ public:
|
||||
|
||||
-(void)controlTextDidEndEditing:(NSNotification*)notification {
|
||||
// No Q_ASSERT here as it is called on destruction.
|
||||
if (pimpl)
|
||||
pimpl->textDidEndEditing();
|
||||
if (!pimpl) return;
|
||||
|
||||
pimpl->textDidEndEditing();
|
||||
|
||||
if ([[[notification userInfo] objectForKey:@"NSTextMovement"] intValue] == NSReturnTextMovement)
|
||||
pimpl->returnPressed();
|
||||
|
Loading…
Reference in New Issue
Block a user