From d60a2cceee6b8516abc6c6fe0ebd8712df41f425 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 3 Jul 2022 14:23:49 +0200 Subject: [PATCH] fix #50, "Reset default layout" did not work properly very old regression --- CHANGELOG.md | 3 ++- src/u_main.pas | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfd16dc4..8f2eebb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,8 @@ ## Regressions fixed -- Editor, line clicked when adding a breakpoint unexpectedly vertically centered ( +- Editor, line clicked when adding a breakpoint unexpectedly vertically centered. +- Window menu, "Reset default layout", did not work anymore. (#50) # v3.9.21 diff --git a/src/u_main.pas b/src/u_main.pas index 95112e47..17fac886 100644 --- a/src/u_main.pas +++ b/src/u_main.pas @@ -1780,14 +1780,21 @@ begin begin w := fWidgList.widget[i]; if not w.isDockable then + begin + if not w.isModal then + w.showWidget; continue; - if not w.Visible then - continue; + end; + w.showWidget; + w.Show; if w = fEditWidg then continue; h := DockMaster.GetAnchorSite(w); if h.isAssigned then h.ManualFloat(w.ClientRect, false); + // this should be made automatically but fixes + // https://gitlab.com/basile.b/dexed/-/issues/50 + h.pages.Free; end; end;