aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Steven Siloti <ssiloti@gmail.com> 2010-09-05 16:41:29 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-09-06 08:38:21 +0100
commit1bbfb70cfe8309c4d439f5632d3de3785d4b62fa (patch)
treec21fc1075c0b0acf51edb14d3abff456e820c279
parent302e5c86bd49cd938888e2ffaf7cc7974e5655cb (diff)
downloadpaludis-1bbfb70cfe8309c4d439f5632d3de3785d4b62fa.tar.gz
paludis-1bbfb70cfe8309c4d439f5632d3de3785d4b62fa.tar.xz
Show prefix in both changed and unchanged if both have values from the same choice.
-rwxr-xr-x[-rw-r--r--]src/clients/cave/cmd_display_resolution.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index c5906c8..bd2bc73 100644..100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -544,7 +544,7 @@ namespace
if ((*k)->hidden())
continue;
- bool shown_prefix(false);
+ bool shown_prefix_changed(false), shown_prefix_unchanged(false);
for (Choice::ConstIterator i((*k)->begin()), i_end((*k)->end()) ;
i != i_end ; ++i)
{
@@ -556,6 +556,7 @@ namespace
changed_state = changed_choices->overridden_value((*i)->name_with_prefix());
auto & s_prefix(changed_state.is_indeterminate() ? unchanged_s_prefix : changed_s_prefix);
+ auto & shown_prefix(changed_state.is_indeterminate() ? shown_prefix_unchanged : shown_prefix_changed);
if (! shown_prefix)
{