From b720450f868791030e6292f77202979cf5c86914 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 7 Oct 2018 13:37:17 +0000 Subject: [PATCH] remove unnecessary getApp call --- src/singletons/WindowManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/singletons/WindowManager.cpp b/src/singletons/WindowManager.cpp index 7e8d7dcde..aa58ed48a 100644 --- a/src/singletons/WindowManager.cpp +++ b/src/singletons/WindowManager.cpp @@ -450,8 +450,7 @@ void WindowManager::sendAlert() if (getSettings()->longAlerts) { flashDuration = 0; } - QApplication::alert(getApp()->windows->getMainWindow().window(), - flashDuration); + QApplication::alert(this->getMainWindow().window(), flashDuration); } void WindowManager::encodeNodeRecusively(SplitNode *node, QJsonObject &obj)