diff options
author | John Fultz <jfultz@wolfram.com> | 2015-10-10 19:09:36 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2015-10-10 19:09:36 -0500 |
commit | 69e3dcefb882c743b136df8e5c81b4182b135f6b (patch) | |
tree | faabb8c691da11067297df8d870c0393a91c8a7f /datamanager.cpp | |
parent | 81554a201cc5e0748110add6eca05cc16c18850c (diff) |
Progress on the lexicon dialog.
Now prints better stats. Now loads the
dictionary you're editing. Now disables the
Delete button at appropriate times.
Diffstat (limited to 'datamanager.cpp')
-rw-r--r-- | datamanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/datamanager.cpp b/datamanager.cpp index eb65afd..916610a 100644 --- a/datamanager.cpp +++ b/datamanager.cpp @@ -156,6 +156,12 @@ string DataManager::findDataFile(const string &subDirectory, const string &file) return fname; } +bool DataManager::hasUserDataFile(const string &subDirectory, const string &file) +{ + string fname = makeDataFilename(subDirectory, file, true); + return fileExists(fname); +} + string DataManager::makeDataFilename(const string &subDirectory, const string &lexicon, const string &file, bool user) { return (user ? m_userDataDirectory : m_appDataDirectory) + "/" + subDirectory + "/" + lexicon + "/" + file; |