Also clear the overlay internals when floating an overlay

Fixes a crash.

Relates to #162
This commit is contained in:
Sergio Martins
2021-02-05 16:29:27 +00:00
parent f1e4f7ecda
commit 621c3dbeca
5 changed files with 28 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ public:
void toggleOverlayOnSideBar(DockWidgetBase *);
/// @brief closes any overlayed dock widget. The sidebar still displays them as button.
void clearSideBarOverlay();
void clearSideBarOverlay(bool deleteFrame = true);
/// @brief Returns the sidebar this dockwidget is in. nullptr if not in any.
SideBar *sideBarForDockWidget(const DockWidgetBase *) const;