don't load file if none is specified

This commit is contained in:
Hieu Hoang 2013-05-16 22:50:13 +01:00
parent 585786d26b
commit 03d5c670e7

View File

@ -36,10 +36,12 @@ m_unrestricted(true)
}
// load word list for restricted feature set
cerr << "loading source word deletion word list from " << filename << endl;
if (!Load(filename)) {
UserMessage::Add("Unable to load word list for source word deletion feature from file " + filename);
//return false;
if (filename != "") {
cerr << "loading source word deletion word list from " << filename << endl;
if (!Load(filename)) {
UserMessage::Add("Unable to load word list for source word deletion feature from file " + filename);
//return false;
}
}
}