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

View File

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