1
0
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:
Arnaud Bienner 2015-03-14 01:38:03 +01:00
parent 55e5eab157
commit fad0ccc8c6

View File

@ -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)