Skip to content

Commit

Permalink
Qt: Fix ESC in disablewallet mode
Browse files Browse the repository at this point in the history
Fixes issue #3854
  • Loading branch information
laanwj committed Mar 18, 2014
1 parent 61774f8 commit b8edf6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qt/rpcconsole.cpp
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/qt/rpcconsole.h
Expand Up @@ -47,6 +47,7 @@ private slots:

public slots:
void clear();
void reject();
void message(int category, const QString &message, bool html = false);
/** Set number of connections shown in the UI */
void setNumConnections(int count);
Expand Down

0 comments on commit b8edf6c

Please sign in to comment.