From 11dec27dd169a04920e1e0cb67c1bdacaf80e284 Mon Sep 17 00:00:00 2001 From: rockihack Date: Thu, 26 Jan 2017 21:09:57 +0100 Subject: [PATCH] MacOS: Fix Global Autotype when frontmost window title is empty. --- src/autotype/mac/AutoTypeMac.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/autotype/mac/AutoTypeMac.cpp b/src/autotype/mac/AutoTypeMac.cpp index 90563a23a..e55c336cb 100644 --- a/src/autotype/mac/AutoTypeMac.cpp +++ b/src/autotype/mac/AutoTypeMac.cpp @@ -98,7 +98,9 @@ QString AutoTypePlatformMac::activeWindowTitle() if (windowLayer(window) == 0) { // First toplevel window in list (front to back order) title = windowTitle(window); - break; + if (!title.isEmpty()) { + break; + } } }