aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2013-07-13 13:14:23 +0200
committerPhilip Kaufmann <[email protected]>2013-07-29 16:22:46 +0200
commitc431e9f1f03023d216db0ff48d3d598e705c97f9 (patch)
tree6132628aa34888e6e9af93982c77d8afcff2f045 /src/qt/rpcconsole.cpp
parentMake sure new wallet variables are initialized (diff)
downloaddiscoin-c431e9f1f03023d216db0ff48d3d598e705c97f9.tar.xz
discoin-c431e9f1f03023d216db0ff48d3d598e705c97f9.zip
Bitcoin-Qt: save and restore position of debug window
- move the code for saving and restoring window positions from BitcoinGUI to GUIUtil, make it more generic and also use it for saving/restoring debug window positions
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index ef72b1720..8953c3657 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -187,6 +187,7 @@ RPCConsole::RPCConsole(QWidget *parent) :
historyPtr(0)
{
ui->setupUi(this);
+ GUIUtil::restoreWindowGeometry("nRPCConsoleWindow", this->size(), this);
#ifndef Q_OS_MAC
ui->openDebugLogfileButton->setIcon(QIcon(":/icons/export"));
@@ -209,6 +210,7 @@ RPCConsole::RPCConsole(QWidget *parent) :
RPCConsole::~RPCConsole()
{
+ GUIUtil::saveWindowGeometry("nRPCConsoleWindow", this);
emit stopExecutor();
delete ui;
}