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; }