]> git.lyx.org Git - features.git/commitdiff
Replace deprecated function
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 17 May 2023 06:56:12 +0000 (08:56 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 17 May 2023 06:56:12 +0000 (08:56 +0200)
activateWindow() is available back to Qt4 (at least)

src/frontends/qt/GuiApplication.cpp

index 5abab17b5e906900c952add5ecf90985e7ec8851..165d14081d1a60939ab2779187e94265802a853b 100644 (file)
@@ -1825,7 +1825,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        createView(QString(), false); // keep hidden
                        current_view_->newDocument(to_utf8(cmd.argument()));
                        current_view_->show();
-                       setActiveWindow(current_view_);
+                       current_view_->activateWindow();
                } else {
                        current_view_->newDocument(to_utf8(cmd.argument()));
                }
@@ -2619,7 +2619,7 @@ void GuiApplication::createView(QString const & geometry_arg, bool autoShow,
 
        if (autoShow) {
                view->show();
-               setActiveWindow(view);
+               view->activateWindow();
        }
 
        if (!geometry_arg.isEmpty()) {