fix - MacOS - Black screen when saving files with tool button key

This commit is contained in:
Yuriy Puchkov
2020-12-03 17:33:07 +02:00
parent dbb08d01b5
commit 20115b339f

View File

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