|
|
@ -128,7 +128,7 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const |
|
|
|
case DisplayAddresses: |
|
|
|
case DisplayAddresses: |
|
|
|
return QVariant(bDisplayAddresses); |
|
|
|
return QVariant(bDisplayAddresses); |
|
|
|
case DetachDatabases: |
|
|
|
case DetachDatabases: |
|
|
|
return QVariant(fDetachDB); |
|
|
|
return QVariant(bitdb.GetDetach()); |
|
|
|
case Language: |
|
|
|
case Language: |
|
|
|
return settings.value("language", ""); |
|
|
|
return settings.value("language", ""); |
|
|
|
default: |
|
|
|
default: |
|
|
@ -215,7 +215,8 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case DetachDatabases: { |
|
|
|
case DetachDatabases: { |
|
|
|
fDetachDB = value.toBool(); |
|
|
|
bool fDetachDB = value.toBool(); |
|
|
|
|
|
|
|
bitdb.SetDetach(fDetachDB); |
|
|
|
settings.setValue("detachDB", fDetachDB); |
|
|
|
settings.setValue("detachDB", fDetachDB); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|