aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsmodel.cpp
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-12-19 18:49:07 -0500
committerMatt Corallo <matt@bluematt.me>2011-12-20 13:51:06 -0500
commitf18a119ac057a3256efffb3ec7d131949ccf48d3 (patch)
tree471a906e81f9a450e53d83fd546b4488ff0a75ce /src/qt/optionsmodel.cpp
parent821462017860c780badf42cb50c3796575e0e053 (diff)
downloadbitcoin-f18a119ac057a3256efffb3ec7d131949ccf48d3.tar.xz
Implement "Start on window system startup" on Win32 + Linux.
Diffstat (limited to 'src/qt/optionsmodel.cpp')
-rw-r--r--src/qt/optionsmodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
index efc216dab8..35d0b57e7e 100644
--- a/src/qt/optionsmodel.cpp
+++ b/src/qt/optionsmodel.cpp
@@ -2,6 +2,7 @@
#include "bitcoinunits.h"
#include "headers.h"
+#include "init.h"
OptionsModel::OptionsModel(CWallet *wallet, QObject *parent) :
QAbstractListModel(parent),
@@ -27,7 +28,7 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const
switch(index.row())
{
case StartAtStartup:
- return QVariant();
+ return QVariant(GetStartOnSystemStartup());
case MinimizeToTray:
return QVariant(fMinimizeToTray);
case MapPortUPnP:
@@ -62,7 +63,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
switch(index.row())
{
case StartAtStartup:
- successful = false; /*TODO*/
+ successful = SetStartOnSystemStartup(value.toBool());
break;
case MinimizeToTray:
fMinimizeToTray = value.toBool();