CDBEnv: fix qt build

This commit is contained in:
Luke Dashjr 2012-05-18 22:23:44 -04:00 committed by Jeff Garzik
parent f29f242758
commit f9189543bf
2 changed files with 4 additions and 2 deletions

View File

@ -52,6 +52,7 @@ public:
void Flush(bool fShutdown);
void CheckpointLSN(std::string strFile);
void SetDetach(bool fDetachDB_) { fDetachDB = fDetachDB_; }
bool GetDetach() { return fDetachDB; }
void CloseDb(const std::string& strFile);

View File

@ -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;