diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-18 14:51:28 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-18 14:51:28 +0100 |
commit | b8edf6c0d8159454eb96349c6441999a779e58e6 (patch) | |
tree | 9e62cdffd207c6811fd09fac4c38338331949673 /src/qt/rpcconsole.cpp | |
parent | 61774f82b3a2c5f9fbae9482ca9b7becee241a3d (diff) |
Qt: Fix ESC in disablewallet mode
Fixes issue #3854
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index cb5991adf1..ba5871ae2b 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -331,6 +331,13 @@ void RPCConsole::clear() tr("Type <b>help</b> for an overview of available commands.")), true); } +void RPCConsole::reject() +{ + // Ignore escape keypress if this is not a seperate window + if(windowType() != Qt::Widget) + QDialog::reject(); +} + void RPCConsole::message(int category, const QString &message, bool html) { QTime time = QTime::currentTime(); |