Ticket #2123: fix_broken_display_profiles.diff
File fix_broken_display_profiles.diff, 855 bytes (added by , 17 years ago) |
---|
-
libs/libmyth/settings.cpp
652 652 } 653 653 654 654 if (select || !isSet) 655 setValue( value);655 setValue(label); 656 656 } 657 657 658 658 bool SelectSetting::removeSelection(const QString &label, QString value) … … 714 714 { 715 715 current = found; 716 716 isSet = true; 717 Setting::setValue( newValue);717 Setting::setValue(values[found]); 718 718 } 719 719 } 720 720 … … 748 748 { 749 749 int ret = 0; 750 750 751 selectionList::const_iterator it = values.begin();752 for (; it != values.end(); ++it, ++ret)751 selectionList::const_iterator it = labels.begin(); 752 for (; it != labels.end(); ++it, ++ret) 753 753 { 754 754 if (*it == value) 755 755 return ret;