1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 02:37:16 +01:00

* ObjectTreeViewItem.cpp (ObjectTreeViewItem::data): fixed #1398

bold font and "*" in the tree indicate firewalls that require
installation but should indicate those that require recompile
This commit is contained in:
Vadim Kurland 2010-04-09 16:53:27 +00:00
parent 215186707d
commit 0417a1ba52
4 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 2800
#define BUILD_NUM 2803

View File

@ -1,3 +1,9 @@
2010-04-09 vadim <vadim@vk.crocodile.org>
* ObjectTreeViewItem.cpp (ObjectTreeViewItem::data): fixed #1398
bold font and "*" in the tree indicate firewalls that require
installation but should indicate those that require recompile
2010-04-08 Vadim Kurland <vadim@vk.crocodile.org>
* interfacePropertiesObjectFactory.cpp: fixed #1396, SF bug 2984193

View File

@ -130,7 +130,7 @@ QString FWObjectPropertiesFactory::getObjectPropertiesBrief(FWObject *obj)
str << ar->getRangeEnd().toString().c_str();
} else if (Firewall::cast(obj))
{
if (Firewall::cast(obj)->needsInstall()) str << " * ";
if (Firewall::cast(obj)->needsCompile()) str << " * ";
QString platform = obj->getStr("platform").c_str();
QString version = obj->getStr("version").c_str();
QString readableVersion = getVersionString(platform,version);

View File

@ -66,7 +66,7 @@ QVariant ObjectTreeViewItem::data(int column, int role) const
if (o!=NULL)
{
bool mf = !o->getInactive() && (o->needsInstall()) ;
bool mf = !o->getInactive() && (o->needsCompile()) ;
usual.setBold (mf);
usual.setStrikeOut(o->getInactive());
return QVariant(usual);