Silence some compile warnings with reinterpret cast

This commit is contained in:
Jonas Kvinge
2020-07-16 22:46:31 +02:00
parent 4478174dc2
commit 9e32f0d778
3 changed files with 9 additions and 9 deletions

View File

@@ -123,7 +123,7 @@ public:
// First, check if we have the focus.
// If no, it probably means this event isn't for us.
NSResponder* firstResponder = [[NSApp keyWindow] firstResponder];
if ([firstResponder isKindOfClass:[NSText class]] && [(NSText*)firstResponder delegate] == self) {
if ([firstResponder isKindOfClass:[NSText class]] && (NSSearchField*)([(NSText*)firstResponder delegate]) == self) {
if ([event type] == NSEventTypeKeyDown && [event modifierFlags] & NSEventModifierFlagCommand) {
QString keyString = toQString([event characters]);