diff options
author | rubidium <rubidium@openttd.org> | 2009-01-18 00:05:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-18 00:05:49 +0000 |
commit | b8219eb7a119809944f32dbda8c238afedada595 (patch) | |
tree | d04023aa7197f1ad628a477d1334798ca4451b99 /src/network | |
parent | dba9d60d3a284b5abf6e74eede782d193d32a5a2 (diff) | |
download | openttd-b8219eb7a119809944f32dbda8c238afedada595.tar.xz |
(svn r15134) -Fix (r15126): not selecting dependencies when pressing "select update"
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content_gui.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 2f9d481ea..44e191c90 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -639,7 +639,10 @@ public: case NCLWW_SELECT_UPDATE: for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); 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(); break; @@ -647,6 +650,7 @@ public: case NCLWW_UNSELECT: for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) { ContentInfo *ci = *iter; + /* No need to check dependencies; when everything's off nothing can depend */ if (ci->IsSelected()) ci->state = ContentInfo::UNSELECTED; } this->SetDirty(); |