mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
Replace deprecated function
activateWindow() is available back to Qt4 (at least)
This commit is contained in:
parent
e0db6378c9
commit
92f211d6b4
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user