MacOS: Fix Global Autotype when frontmost window title is empty.

This commit is contained in:
rockihack 2017-01-26 21:09:57 +01:00
parent b22b67c7d9
commit 11dec27dd1

View file

@ -98,9 +98,11 @@ QString AutoTypePlatformMac::activeWindowTitle()
if (windowLayer(window) == 0) { if (windowLayer(window) == 0) {
// First toplevel window in list (front to back order) // First toplevel window in list (front to back order)
title = windowTitle(window); title = windowTitle(window);
if (!title.isEmpty()) {
break; break;
} }
} }
}
::CFRelease(windowList); ::CFRelease(windowList);
} }