diff options
| author | Luke Dashjr <[email protected]> | 2012-05-18 22:23:44 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-22 20:47:42 -0400 |
| commit | f9189543bf4bdb099bc8b428d54226bd1050e1b0 (patch) | |
| tree | 14f672e63668d8450fc00e2e2d6405806f14e216 /src/qt/optionsmodel.cpp | |
| parent | Merge pull request #1380 from gavinandresen/optimize2 (diff) | |
| download | discoin-f9189543bf4bdb099bc8b428d54226bd1050e1b0.tar.xz discoin-f9189543bf4bdb099bc8b428d54226bd1050e1b0.zip | |
CDBEnv: fix qt build
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 9f1c6447a..e110cfa6a 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -128,7 +128,7 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const case DisplayAddresses: return QVariant(bDisplayAddresses); case DetachDatabases: - return QVariant(fDetachDB); + return QVariant(bitdb.GetDetach()); case Language: return settings.value("language", ""); default: @@ -215,7 +215,8 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in } break; case DetachDatabases: { - fDetachDB = value.toBool(); + bool fDetachDB = value.toBool(); + bitdb.SetDetach(fDetachDB); settings.setValue("detachDB", fDetachDB); } break; |