Bugfix: Escape the username RegExp used for filtering Ports window
This commit is contained in:
parent
efbc2dcf48
commit
ab76da1ad2
@ -163,9 +163,10 @@ void PortsWindow::showMyReservedPortsOnly(bool enabled)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
QString rx = "Port Group|\\[xxx\\]";
|
QString rx = "Port Group|\\["
|
||||||
rx.replace("xxx",
|
+ QRegExp::escape(appSettings->value(kUserKey,
|
||||||
appSettings->value(kUserKey, kUserDefaultValue).toString());
|
kUserDefaultValue).toString())
|
||||||
|
+ "\\]";
|
||||||
qDebug("%s: regexp: <%s>", __FUNCTION__, qPrintable(rx));
|
qDebug("%s: regexp: <%s>", __FUNCTION__, qPrintable(rx));
|
||||||
proxyPortModel->setFilterRegExp(QRegExp(rx));
|
proxyPortModel->setFilterRegExp(QRegExp(rx));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user