diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-05-13 03:36:40 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-05-13 03:36:40 -0700 |
| commit | b07ea7c74bc8ad338588421371dbdb02d5351496 (patch) | |
| tree | c85905d162513f4f53c337de167ab362650cd58a /src/qt/optionsmodel.cpp | |
| parent | Merge pull request #1270 from laanwj/2012_05_overviewpage2 (diff) | |
| parent | Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code (diff) | |
| download | discoin-b07ea7c74bc8ad338588421371dbdb02d5351496.tar.xz discoin-b07ea7c74bc8ad338588421371dbdb02d5351496.zip | |
Merge pull request #1178 from laanwj/2012_05_move_startonsystemstartup
Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code
Diffstat (limited to 'src/qt/optionsmodel.cpp')
| -rw-r--r-- | src/qt/optionsmodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index 78448d3ee..181dec440 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -4,6 +4,7 @@ #include "init.h" #include "walletdb.h" +#include "guiutil.h" OptionsModel::OptionsModel(QObject *parent) : QAbstractListModel(parent) @@ -107,7 +108,7 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const switch(index.row()) { case StartAtStartup: - return QVariant(GetStartOnSystemStartup()); + return QVariant(GUIUtil::GetStartOnSystemStartup()); case MinimizeToTray: return QVariant(fMinimizeToTray); case MapPortUPnP: @@ -146,7 +147,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in switch(index.row()) { case StartAtStartup: - successful = SetStartOnSystemStartup(value.toBool()); + successful = GUIUtil::SetStartOnSystemStartup(value.toBool()); break; case MinimizeToTray: fMinimizeToTray = value.toBool(); |