mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-14 09:00:01 +02:00
icons on win and mac, bugfix
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2008-07-16 vadim <vadim@vk.crocodile.org>
|
||||||
|
|
||||||
|
* RuleSetView.cpp (RuleSetView::addToGroupAbove): Additional check
|
||||||
|
for a bug where adding very long list of rules to a rule group
|
||||||
|
caused crash once. Bug is hard to reproduce.
|
||||||
|
|
||||||
2008-07-15 vadim <vadim@vk.crocodile.org>
|
2008-07-15 vadim <vadim@vk.crocodile.org>
|
||||||
|
|
||||||
* testing and bug fixes with QT 4.4.
|
* testing and bug fixes with QT 4.4.
|
||||||
|
|||||||
+20
-9
@@ -2524,20 +2524,26 @@ void RuleSetView::addToGroupAbove ()
|
|||||||
RuleRowInfo *ru = rowsInfo[top];
|
RuleRowInfo *ru = rowsInfo[top];
|
||||||
|
|
||||||
if (fwbdebug)
|
if (fwbdebug)
|
||||||
qDebug("RuleSetView::addToGroupAbove row=%d", row);
|
qDebug("RuleSetView::addToGroupAbove row=%d count=%d", row, count);
|
||||||
|
|
||||||
if (!ru->isBeginRow)
|
if (!ru->isBeginRow)
|
||||||
{
|
{
|
||||||
top = getUpNullRuleIndex(top-1);
|
top = getUpNullRuleIndex(top-1);
|
||||||
ru = rowsInfo[top];
|
ru = rowsInfo[top];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i< count ; i++)
|
for (int i = 0; i< count ; i++)
|
||||||
{
|
{
|
||||||
Rule *r = Rule::cast(ruleIndex[row+i]);
|
Rule *r = Rule::cast(ruleIndex[row+i]);
|
||||||
r->setRuleGroupName (ru->groupName.toAscii().data());
|
if (r)
|
||||||
//ruleIndex[row+i] =r ;
|
{
|
||||||
if (ru->collapsedGroup) showHideRuleGroup(
|
r->setRuleGroupName (ru->groupName.toAscii().data());
|
||||||
dynamic_cast<RuleGroupPanel*>(indexWidget(model()->index(top,1))));
|
//ruleIndex[row+i] =r ;
|
||||||
|
if (ru->collapsedGroup)
|
||||||
|
showHideRuleGroup(
|
||||||
|
dynamic_cast<RuleGroupPanel*>(
|
||||||
|
indexWidget(model()->index(top,1))));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
updateGroups();
|
updateGroups();
|
||||||
}
|
}
|
||||||
@@ -2555,10 +2561,15 @@ void RuleSetView::addToGroupBelow()
|
|||||||
for (int i = 0; i< count ; i++)
|
for (int i = 0; i< count ; i++)
|
||||||
{
|
{
|
||||||
Rule *r = Rule::cast(ruleIndex[row+i]);
|
Rule *r = Rule::cast(ruleIndex[row+i]);
|
||||||
r->setRuleGroupName (ru->groupName.toAscii().data());
|
if (r)
|
||||||
//ruleIndex[row+i] =r ;
|
{
|
||||||
if (ru->collapsedGroup) showHideRuleGroup(
|
r->setRuleGroupName (ru->groupName.toAscii().data());
|
||||||
dynamic_cast<RuleGroupPanel*>(indexWidget(model()->index(bottom,1))));
|
//ruleIndex[row+i] =r ;
|
||||||
|
if (ru->collapsedGroup)
|
||||||
|
showHideRuleGroup(
|
||||||
|
dynamic_cast<RuleGroupPanel*>(
|
||||||
|
indexWidget(model()->index(bottom,1))));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
updateGroups();
|
updateGroups();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user