mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
opt: remove deprecated method setActivateWindow()
This commit is contained in:
parent
a767f3f030
commit
6848ebfe45
|
@ -2756,7 +2756,6 @@ void MainWindow::toggleMainWindow( bool onlyShow )
|
|||
if ( !isVisible() ) {
|
||||
show();
|
||||
|
||||
qApp->setActiveWindow( this );
|
||||
activateWindow();
|
||||
raise();
|
||||
shown = true;
|
||||
|
@ -2771,10 +2770,9 @@ void MainWindow::toggleMainWindow( bool onlyShow )
|
|||
shown = true;
|
||||
}
|
||||
else if ( !isActiveWindow() ) {
|
||||
qApp->setActiveWindow( this );
|
||||
activateWindow();
|
||||
if ( cfg.preferences.raiseWindowOnSearch ) {
|
||||
raise();
|
||||
activateWindow();
|
||||
}
|
||||
shown = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue