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