| 83 | } |
| 84 | |
| 85 | bool SettingsTable::deleteSettingsRecordString(const QString& type) const |
| 86 | { |
| 87 | QVariantMap results; |
| 88 | VectorPair cond; |
| 89 | cond.append(CPair("type", type)); |
| 90 | // when a setting is not global we are searching also for the instance |
| 91 | if (!isSettingGlobal(type)) |
| 92 | cond.append(CPair("AND " + INSTANCE_COLUMN, _instance)); |
| 93 | return deleteRecord(cond); |
| 94 | } |
| 95 | |
| 96 | bool SettingsTable::purge(const QString& type) const |
| 97 | { |