mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 15:41:41 +02:00
checking address in FindObjectWidget::matchAttr
This commit is contained in:
@@ -186,11 +186,16 @@ bool FindObjectWidget::matchAttr(libfwbuilder::FWObject *obj)
|
|||||||
Address *a = Address::cast(obj);
|
Address *a = Address::cast(obj);
|
||||||
if (a!=NULL)
|
if (a!=NULL)
|
||||||
{
|
{
|
||||||
QString addr = a->getAddressPtr()->toString().c_str();
|
const InetAddr *inet_addr = a->getAddressPtr();
|
||||||
|
if (inet_addr)
|
||||||
if (m_widget->useRegexp->isChecked()) res= ( addr.indexOf( QRegExp(s) )!=-1 );
|
{
|
||||||
else res= ( addr == s );
|
QString addr = inet_addr->toString().c_str();
|
||||||
|
|
||||||
|
if (m_widget->useRegexp->isChecked())
|
||||||
|
res = ( addr.indexOf( QRegExp(s) )!=-1 );
|
||||||
|
else
|
||||||
|
res= ( addr == s );
|
||||||
|
}
|
||||||
//res= ( addr == s );
|
//res= ( addr == s );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user