changeset 2671:69d9922db31b draft

CDBEnv: fix qt build
author Luke Dashjr <luke-jr+git@utopios.org>
date Fri, 18 May 2012 22:23:44 -0400
parents 215fdccd0621
children dab1bd565628 6f9e2902c50d
files src/db.h src/qt/optionsmodel.cpp
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/db.h
+++ b/src/db.h
@@ -52,6 +52,7 @@
     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);
 
--- a/src/qt/optionsmodel.cpp
+++ b/src/qt/optionsmodel.cpp
@@ -128,7 +128,7 @@
         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 @@
             }
             break;
         case DetachDatabases: {
-            fDetachDB = value.toBool();
+            bool fDetachDB = value.toBool();
+            bitdb.SetDetach(fDetachDB);
             settings.setValue("detachDB", fDetachDB);
             }
             break;