Skip to content

Commit f918954

Browse files
luke-jrJeff Garzik
authored and
Jeff Garzik
committed
CDBEnv: fix qt build
1 parent f29f242 commit f918954

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/db.h

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class CDBEnv
5252
void Flush(bool fShutdown);
5353
void CheckpointLSN(std::string strFile);
5454
void SetDetach(bool fDetachDB_) { fDetachDB = fDetachDB_; }
55+
bool GetDetach() { return fDetachDB; }
5556

5657
void CloseDb(const std::string& strFile);
5758

src/qt/optionsmodel.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const
128128
case DisplayAddresses:
129129
return QVariant(bDisplayAddresses);
130130
case DetachDatabases:
131-
return QVariant(fDetachDB);
131+
return QVariant(bitdb.GetDetach());
132132
case Language:
133133
return settings.value("language", "");
134134
default:
@@ -215,7 +215,8 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
215215
}
216216
break;
217217
case DetachDatabases: {
218-
fDetachDB = value.toBool();
218+
bool fDetachDB = value.toBool();
219+
bitdb.SetDetach(fDetachDB);
219220
settings.setValue("detachDB", fDetachDB);
220221
}
221222
break;

0 commit comments

Comments
 (0)