aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-10-25 11:52:34 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-11-12 22:16:53 +0000
commit207260d0c7e5f1e68a803642f282292e7c4bd8e2 (patch)
treea367ad9eb3ad0bab89e05a437e1a55dfbbe6d5c0
parentf9d1d138557f6e19726a18f19a328e8866165d5a (diff)
downloadbitcoin-207260d0c7e5f1e68a803642f282292e7c4bd8e2.tar.xz
ensure AskPassphraseDialog::eventFilter forwards events
- instead of "return false;" use "return QDialog::eventFilter(object, event);" to harmonize this event filter with our default behaviour (partial of 83a3fb81f3da38461457e8dcdf5baf27b662a4b3)
-rw-r--r--src/qt/askpassphrasedialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/askpassphrasedialog.cpp b/src/qt/askpassphrasedialog.cpp
index cae021c982..7b9d4912ff 100644
--- a/src/qt/askpassphrasedialog.cpp
+++ b/src/qt/askpassphrasedialog.cpp
@@ -222,7 +222,7 @@ bool AskPassphraseDialog::event(QEvent *event)
return QWidget::event(event);
}
-bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
+bool AskPassphraseDialog::eventFilter(QObject *object, QEvent *event)
{
/* Detect Caps Lock.
* There is no good OS-independent way to check a key state in Qt, but we
@@ -245,5 +245,5 @@ bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
}
}
}
- return false;
+ return QDialog::eventFilter(object, event);
}