Skip to content

Commit

Permalink
Set Qt::CustomizeWindowHint
Browse files Browse the repository at this point in the history
Make sure that `Qt::CustomizeWindowHint` is set like it was before.
  • Loading branch information
michaelgregorius committed Oct 4, 2024
1 parent f4f4d11 commit 6b953fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/SubWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ SubWindow::SubWindow(QWidget *parent, Qt::WindowFlags windowFlags) :
m_windowTitle->setAttribute( Qt::WA_TransparentForMouseEvents, true );
m_windowTitle->setGraphicsEffect( m_shadow );

// disable the minimize button
setWindowFlags(this->windowFlags() & ~Qt::WindowMinimizeButtonHint);
// Disable the minimize button and make sure that the custom window hint is set
setWindowFlags((this->windowFlags() & ~Qt::WindowMinimizeButtonHint) | Qt::CustomizeWindowHint);

connect( mdiArea(), SIGNAL(subWindowActivated(QMdiSubWindow*)), this, SLOT(focusChanged(QMdiSubWindow*)));
}
Expand Down

0 comments on commit 6b953fc

Please sign in to comment.