summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2020-12-18 17:40:39 +0100
committerJean-Pierre Ledure <jp@ledure.be>2020-12-19 10:50:13 +0100
commit862637bfffd688a15b5c49768657aa18997d0e54 (patch)
tree27c634bf2d1e4ba93fe065e8274c0ef27210bdc2 /wizards
parent746da2e47d92c9de4d6bcec22155c34cece5c331 (diff)
ScriptForge - (SF_Exception) Fix console start in modal mode
When the console is first started in non-modal mode and the launching macro stops normally, when the console is then requested to restart in modal mode, it does not start This patch forces a reinit of the console dialog when it is started in modal mode, whatever its status Change-Id: Ia687661e60259c235f2b45decf9bb6e342d3f26b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107973 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/scriptforge/SF_Exception.xba2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/source/scriptforge/SF_Exception.xba b/wizards/source/scriptforge/SF_Exception.xba
index c3f9c96dc93a..c4a0f6c85370 100644
--- a/wizards/source/scriptforge/SF_Exception.xba
+++ b/wizards/source/scriptforge/SF_Exception.xba
@@ -268,7 +268,7 @@ Try:
With _SF_
bConsoleActive = False
If Not IsNull(.ConsoleDialog) Then bConsoleActive = .ConsoleDialog._IsStillAlive(False) &apos; False to not raise an error
- If bConsoleActive Then
+ If bConsoleActive And Modal = False Then
&apos; Bring to front
.ConsoleDialog.Activate()
Else