summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/QtUI/QtStatusWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtStatusWidget.cpp b/Swift/QtUI/QtStatusWidget.cpp
index da5d0e0..e5a4eff 100644
--- a/Swift/QtUI/QtStatusWidget.cpp
+++ b/Swift/QtUI/QtStatusWidget.cpp
@@ -87,7 +87,8 @@ QtStatusWidget::~QtStatusWidget() {
delete menu_;
}
-void QtStatusWidget::handleApplicationFocusChanged(QWidget* /*old*/, QWidget* now) {
+void QtStatusWidget::handleApplicationFocusChanged(QWidget* /*old*/, QWidget* /*now*/) {
+ QWidget* now = qApp->focusWidget();
if (!editing_ || stack_->currentIndex() == 0) {
return;
}