From 20115b339fd5a8fc291031dd0460903c32417af0 Mon Sep 17 00:00:00 2001 From: Yuriy Puchkov Date: Thu, 3 Dec 2020 17:33:07 +0200 Subject: [PATCH] fix - MacOS - Black screen when saving files with tool button key --- src/tools/save/savetool.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/save/savetool.cpp b/src/tools/save/savetool.cpp index 079be73e..ac5eae54 100644 --- a/src/tools/save/savetool.cpp +++ b/src/tools/save/savetool.cpp @@ -65,9 +65,8 @@ void SaveTool::pressed(const CaptureContext& context) defined(Q_OS_MACX)) for (QWidget* widget : qApp->topLevelWidgets()) { QString className(widget->metaObject()->className()); - // if (className.compare("CaptureWidget") == 0) { - if (className.compare(CaptureWidget::staticMetaObject.className()) == - 0) { + if (0 == + className.compare(CaptureWidget::staticMetaObject.className())) { widget->showNormal(); break; }