From: Juergen Spitzmueller Date: Wed, 17 May 2023 06:56:12 +0000 (+0200) Subject: Replace deprecated function X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=92f211d6b4fc8de8ea60427d74afecd4ad90b3d0;p=features.git Replace deprecated function activateWindow() is available back to Qt4 (at least) --- diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 5abab17b5e..165d14081d 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -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()) {