From 6bef94b3e200bed486eb10ecb0f8dfa8de0cf6d8 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 26 Jan 2020 11:38:24 +1100 Subject: [PATCH] qt: fixed strange UI issue where hidden floating dock widgets would show as transparent cuts through the main window on linux For some reason, setting not visible *after* setting floating would cause this issue. The other way around does not. --- app/window/mainwindow/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/window/mainwindow/mainwindow.cpp b/app/window/mainwindow/mainwindow.cpp index 81ac2cbe8..68c59c159 100644 --- a/app/window/mainwindow/mainwindow.cpp +++ b/app/window/mainwindow/mainwindow.cpp @@ -158,10 +158,10 @@ void MainWindow::closeEvent(QCloseEvent *e) void MainWindow::SetDefaultLayout() { + task_man_panel_->close(); task_man_panel_->setFloating(true); - task_man_panel_->setVisible(false); + curve_panel_->close(); curve_panel_->setFloating(true); - curve_panel_->setVisible(false); resizeDocks({node_panel_, param_panel_, viewer_panel_}, {width()/3, width()/3, width()/3},