Skip to content

Commit

Permalink
Show non-resizable instruments as normal
Browse files Browse the repository at this point in the history
Show the sub windows of non-resizable instruments as normal if the sub
window is maximized because it was previously used with a resizable
instrument.
  • Loading branch information
michaelgregorius committed Oct 9, 2024
1 parent e69204f commit 9aab76b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/instrument/InstrumentTrackWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,13 @@ void InstrumentTrackWindow::updateSubWindowState()
{
flags |= Qt::MSWindowsFixedSizeDialogHint;
flags &= ~Qt::WindowMaximizeButtonHint;

// The sub window might be reused from an instrument that was maximized. Show the sub window
// as normal, i.e. not maximized, if the instrument view is not resizable.
if (subWindow->isMaximized())
{
subWindow->showNormal();
}
}

subWindow->setWindowFlags(flags);
Expand Down

0 comments on commit 9aab76b

Please sign in to comment.