Skip to content

Commit

Permalink
OSX: Fix warning causing failing tests
Browse files Browse the repository at this point in the history
Fixes following warning on OS X.

    QtWarning: Failed to get QCocoaScreen for NSObject(0x0)

Signed-off-by: Lukas Holecek <hluk@email.cz>
  • Loading branch information
hluk committed Dec 8, 2018
1 parent af3482c commit 033319d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/mac/foregroundbackgroundfilter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ bool isNormalAppWindow(QWindow *window)

// Allow windows to pop up on current space.
const auto wid = window->winId();
if (!wid)
return false;

auto nsView = reinterpret_cast<NSView*>(wid);
auto nsWindow = [nsView window];
if (nsWindow)
Expand Down

0 comments on commit 033319d

Please sign in to comment.