Mercurial > hg > svcore
comparison base/ResourceFinder.cpp @ 980:6e6da0636e5e tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 16:36:21 +0100 |
parents | 9a422d610058 |
children | f161ca450050 |
comparison
equal
deleted
inserted
replaced
954:35b05cac32d0 | 980:6e6da0636e5e |
---|---|
216 | 216 |
217 if (resourceCat != "") { | 217 if (resourceCat != "") { |
218 QString save = QString("%1%2").arg(user).arg(resourceCat); | 218 QString save = QString("%1%2").arg(user).arg(resourceCat); |
219 QDir saveDir(save); | 219 QDir saveDir(save); |
220 if (!saveDir.exists()) { | 220 if (!saveDir.exists()) { |
221 if (!userDir.mkpath(save)) { | 221 if (!saveDir.mkpath(save)) { |
222 cerr << "ResourceFinder::getResourceSaveDir: ERROR: Failed to create user resource path \"" << save << "\"" << endl; | 222 cerr << "ResourceFinder::getResourceSaveDir: ERROR: Failed to create user resource path \"" << save << "\"" << endl; |
223 return ""; | 223 return ""; |
224 } | 224 } |
225 } | 225 } |
226 return save; | 226 return save; |