[LyX/master] Fix bug #11351.
Richard Kimberly Heck
rikiheck at lyx.org
Tue Feb 2 22:32:05 UTC 2021
commit bd0044f9d53b57eb08e45cbd03897eb65cdf1e92
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Tue Feb 2 17:34:25 2021 -0500
Fix bug #11351.
Patch from Daniel.
---
src/frontends/qt/Dialog.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/frontends/qt/Dialog.cpp b/src/frontends/qt/Dialog.cpp
index c9d11f7..783f5eb 100644
--- a/src/frontends/qt/Dialog.cpp
+++ b/src/frontends/qt/Dialog.cpp
@@ -174,12 +174,10 @@ void Dialog::showView()
prepareView();
QWidget * w = asQWidget();
- if (w->isVisible()) {
- w->raise();
- w->activateWindow();
- } else
+ if (!w->isVisible())
w->show();
-
+ w->raise();
+ w->activateWindow();
if (wantInitialFocus())
w->setFocus();
else {
More information about the lyx-cvs
mailing list