additional modification to the IDValidator (restricting relaxed mode slightly more)

This commit is contained in:
Marc Zinnschlag 2013-10-22 11:32:10 +02:00
parent dc473221e7
commit 67bc0a0c70

View file

@ -20,7 +20,7 @@ QValidator::State CSVWorld::IdValidator::validate (QString& input, int& pos) con
{
if (mRelaxed)
{
if (input.indexOf ('"')!=-1 || input.indexOf ("::")!=-1)
if (input.indexOf ('"')!=-1 || input.indexOf ("::")!=-1 || input.indexOf ("#")!=-1)
return QValidator::Invalid;
}
else