@@ -213,8 +213,15 @@ void ICCStore::init (Glib::ustring usrICCDir, Glib::ustring rtICCDir) {
|
|||||||
|
|
||||||
void ICCStore::loadICCs(Glib::ustring rootDirName, bool nameUpper, std::map<std::string, cmsHPROFILE>& resultProfiles, std::map<std::string, ProfileContent> &resultProfileContents) {
|
void ICCStore::loadICCs(Glib::ustring rootDirName, bool nameUpper, std::map<std::string, cmsHPROFILE>& resultProfiles, std::map<std::string, ProfileContent> &resultProfileContents) {
|
||||||
if (rootDirName!="") {
|
if (rootDirName!="") {
|
||||||
|
std::deque<Glib::ustring> qDirs;
|
||||||
|
|
||||||
|
qDirs.push_front(rootDirName);
|
||||||
|
|
||||||
|
while (qDirs.size()) {
|
||||||
// process directory
|
// process directory
|
||||||
Glib::ustring dirname = rootDirName;
|
Glib::ustring dirname = qDirs.back();
|
||||||
|
qDirs.pop_back();
|
||||||
|
|
||||||
Glib::Dir* dir = NULL;
|
Glib::Dir* dir = NULL;
|
||||||
try {
|
try {
|
||||||
if (!safe_file_test (dirname, Glib::FILE_TEST_IS_DIR)) return;
|
if (!safe_file_test (dirname, Glib::FILE_TEST_IS_DIR)) return;
|
||||||
@@ -241,11 +248,12 @@ void ICCStore::loadICCs(Glib::ustring rootDirName, bool nameUpper, std::map<std:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else qDirs.push_front(fname); // for later scanning
|
||||||
}
|
}
|
||||||
delete dir;
|
delete dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Determine the first monitor default profile of operating system, if selected
|
// Determine the first monitor default profile of operating system, if selected
|
||||||
void ICCStore::findDefaultMonitorProfile() {
|
void ICCStore::findDefaultMonitorProfile() {
|
||||||
|
Reference in New Issue
Block a user