From 5b08914e18c19c488c95af08a64c3555d193a463 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 26 Mar 2019 14:15:21 +1100 Subject: [PATCH] more documentation on maximize panel --- ui/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 09747ffb5..495842e3c 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -1080,10 +1080,13 @@ void MainWindow::maximize_panel() { // store the current state of panels temp_panel_state = saveState(); - // remove all dock widgets + // remove all dock widgets that aren't the hovered panel for (int i=0;isetVisible(false); + + // set it to floating olive::panels.at(i)->setFloating(true); } }