Skip to content

Commit

Permalink
Revert "Fix setActiveWindow deprecation warning"
Browse files Browse the repository at this point in the history
This reverts commit 30024ac.
Due to bug described in #745
  • Loading branch information
zjeffer committed Feb 19, 2025
1 parent f7c03bd commit c1a4e44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3918,7 +3918,10 @@ bool MainWindow::eventFilter(QObject *object, QEvent *event)
}
case QEvent::ActivationChange: {
if (m_editorSettingsWidget->isHidden()) {
QWidget::activateWindow();
QApplication::setActiveWindow(
this); // TODO: The docs say this function is deprecated but it's the only one
// that works in returning the user input from m_editorSettingsWidget
// Qt::Popup
m_textEdit->setFocus();
}
break;
Expand Down

0 comments on commit c1a4e44

Please sign in to comment.