diff options
Diffstat (limited to 'src/FbTk/Resource.cc')
-rw-r--r-- | src/FbTk/Resource.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Resource.cc b/src/FbTk/Resource.cc index 5d2dc3b..cb45eac 100644 --- a/src/FbTk/Resource.cc +++ b/src/FbTk/Resource.cc | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "XrmDatabaseHelper.hh" | 24 | #include "XrmDatabaseHelper.hh" |
25 | #include "Resource.hh" | 25 | #include "Resource.hh" |
26 | #include "I18n.hh" | 26 | #include "I18n.hh" |
27 | #include "StringUtil.hh" | ||
27 | 28 | ||
28 | #include <iostream> | 29 | #include <iostream> |
29 | #ifdef HAVE_CASSERT | 30 | #ifdef HAVE_CASSERT |
@@ -61,7 +62,7 @@ bool ResourceManager::m_init = false; | |||
61 | @return true on success else false | 62 | @return true on success else false |
62 | */ | 63 | */ |
63 | bool ResourceManager::load(const char *filename) { | 64 | bool ResourceManager::load(const char *filename) { |
64 | m_filename = filename; | 65 | m_filename = StringUtil::expandFilename(filename).c_str(); |
65 | 66 | ||
66 | // force reload (lock will ensure it exists) | 67 | // force reload (lock will ensure it exists) |
67 | if (m_database) { | 68 | if (m_database) { |
@@ -106,6 +107,7 @@ bool ResourceManager::load(const char *filename) { | |||
106 | */ | 107 | */ |
107 | bool ResourceManager::save(const char *filename, const char *mergefilename) { | 108 | bool ResourceManager::save(const char *filename, const char *mergefilename) { |
108 | assert(filename); | 109 | assert(filename); |
110 | filename = StringUtil::expandFilename(filename).c_str(); | ||
109 | 111 | ||
110 | // empty database | 112 | // empty database |
111 | XrmDatabaseHelper database; | 113 | XrmDatabaseHelper database; |