From fd766f1b26280313e0aed92f01e7944e51534341 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Mon, 21 Oct 2019 09:06:26 +0300 Subject: [PATCH] fix old Qt build --- profiler_gui/window_header.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler_gui/window_header.cpp b/profiler_gui/window_header.cpp index 3d9d204..a67f3f8 100644 --- a/profiler_gui/window_header.cpp +++ b/profiler_gui/window_header.cpp @@ -108,7 +108,7 @@ WindowHeader::WindowHeader(const QString& title, Buttons buttons, QWidget& paren #if !defined(_WIN32) if (m_maximizeButton != nullptr || m_minimizeButton != nullptr) { - parent->setWindowFlag(Qt::SubWindow, true); + parent->setWindowFlags(parent->windowFlags() | Qt::SubWindow); } #endif