Bug QTBUG-43344 was fixed in Qt 5.11.1.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-27 16:32:26 +03:00
parent 3d121c8247
commit ee6ffab480
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ void TMainWindow::ToolBarStyles()
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void TMainWindow::closeEvent(QCloseEvent *event) 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 // Workaround for Qt bug https://bugreports.qt.io/browse/QTBUG-43344
static int numCalled = 0; static int numCalled = 0;
if (numCalled++ >= 1) if (numCalled++ >= 1)

View File

@ -1530,7 +1530,7 @@ void MainWindow::changeEvent(QEvent *event)
*/ */
void MainWindow::closeEvent(QCloseEvent *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 // Workaround for Qt bug https://bugreports.qt.io/browse/QTBUG-43344
static int numCalled = 0; static int numCalled = 0;
if (numCalled++ >= 1) if (numCalled++ >= 1)