Fix QRegularExpression

-add isValid
-add debug
This commit is contained in:
Simon De Backer
2020-09-23 21:36:48 +02:00
parent e0c8dd9585
commit b5ae1237e3
2 changed files with 22 additions and 7 deletions

View File

@@ -253,7 +253,8 @@ void ElementsLocation::setPath(const QString &path)
QRegularExpressionMatch match = re.match(tmp_path);
if (!match.hasMatch())
{
qDebug()<<"no Match => return";
qDebug()<<"no Match => return"
<<tmp_path;
return;
}
bool conv_ok;