diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-19 07:50:02 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-19 07:50:02 +0000 |
| commit | 7440ad2e6fe345d0fbc037c690913705bc351e68 (patch) | |
| tree | e13b5b835e188a9c3f8a28a7b9b3850ee0def97e /src/Resource.cc | |
| parent | 940c1f614fa380a9153c3b81d0614201b27957c2 (diff) | |
starting openbox without an rc file now works. it makes an empty Xrm db instead of crashing :)
Diffstat (limited to 'src/Resource.cc')
| -rw-r--r-- | src/Resource.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Resource.cc b/src/Resource.cc index cff9bd38..2a678f89 100644 --- a/src/Resource.cc +++ b/src/Resource.cc @@ -85,6 +85,13 @@ bool Resource::load() { return true; } +void Resource::create() { + if (m_database != NULL) + XrmDestroyDatabase(m_database); + m_modified = false; + ASSERT(NULL != (m_database = XrmGetStringDatabase(""))); +} + void Resource::setValue(const std::string &rname, bool value) { ASSERT(m_database != NULL); |
