From ee6ffab48022c3cc1c8df450c87b06a4b682c39d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 27 Apr 2018 16:32:26 +0300 Subject: [PATCH] Bug QTBUG-43344 was fixed in Qt 5.11.1. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 2 +- src/app/valentina/mainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index ac27e8360..0a6c1c42d 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -519,7 +519,7 @@ void TMainWindow::ToolBarStyles() //--------------------------------------------------------------------------------------------------------------------- void TMainWindow::closeEvent(QCloseEvent *event) { -#if defined(Q_OS_MAC) +#if defined(Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK(5, 11, 1) // Workaround for Qt bug https://bugreports.qt.io/browse/QTBUG-43344 static int numCalled = 0; if (numCalled++ >= 1) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 70e0940e7..64a7b1757 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1530,7 +1530,7 @@ void MainWindow::changeEvent(QEvent *event) */ void MainWindow::closeEvent(QCloseEvent *event) { -#if defined(Q_OS_MAC) +#if defined(Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK(5, 11, 1) // Workaround for Qt bug https://bugreports.qt.io/browse/QTBUG-43344 static int numCalled = 0; if (numCalled++ >= 1)