]> git.lyx.org Git - features.git/commitdiff
Fix bug #11351.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 2 Feb 2021 22:34:25 +0000 (17:34 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 2 Feb 2021 22:34:25 +0000 (17:34 -0500)
Patch from Daniel.

src/frontends/qt/Dialog.cpp

index c9d11f74a65b11151b2a902610c95266d64b7844..783f5eb22c86c6cf8e41d1a1bc53b95a4523d44f 100644 (file)
@@ -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 {