mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
(svn r15134) -Fix (r15126): not selecting dependencies when pressing "select update"
This commit is contained in:
parent
dba9d60d3a
commit
b8219eb7a1
@ -639,7 +639,10 @@ public:
|
|||||||
case NCLWW_SELECT_UPDATE:
|
case NCLWW_SELECT_UPDATE:
|
||||||
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
||||||
ContentInfo *ci = *iter;
|
ContentInfo *ci = *iter;
|
||||||
if (ci->state == ContentInfo::UNSELECTED && (widget == NCLWW_SELECT_ALL || ci->update)) ci->state = ContentInfo::SELECTED;
|
if (ci->state == ContentInfo::UNSELECTED && (widget == NCLWW_SELECT_ALL || ci->update)) {
|
||||||
|
ci->state = ContentInfo::SELECTED;
|
||||||
|
CheckDependencyState(ci);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
@ -647,6 +650,7 @@ public:
|
|||||||
case NCLWW_UNSELECT:
|
case NCLWW_UNSELECT:
|
||||||
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
||||||
ContentInfo *ci = *iter;
|
ContentInfo *ci = *iter;
|
||||||
|
/* No need to check dependencies; when everything's off nothing can depend */
|
||||||
if (ci->IsSelected()) ci->state = ContentInfo::UNSELECTED;
|
if (ci->IsSelected()) ci->state = ContentInfo::UNSELECTED;
|
||||||
}
|
}
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
|
Loading…
Reference in New Issue
Block a user