Skip to content

Commit

Permalink
Fix default default hotcue selection
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Mar 24, 2020
1 parent e11a6bd commit 49e6f2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/preferences/dialog/dlgprefcolors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ void DlgPrefColors::slotResetToDefaults() {
mixxx::PredefinedColorPalettes::kDefaultHotcueColorPalette.getName());
comboBoxTrackColors->setCurrentText(
mixxx::PredefinedColorPalettes::kDefaultTrackColorPalette.getName());
comboBoxHotcueDefaultColor->setCurrentIndex(1);
comboBoxHotcueDefaultColor->setCurrentIndex(
mixxx::PredefinedColorPalettes::kDefaultTrackColorPalette.size());
slotApply();
}

Expand Down Expand Up @@ -156,7 +157,7 @@ void DlgPrefColors::slotHotcuePaletteChanged(const QString& paletteName) {
QPixmap preview = drawPalettePreview(paletteName);
labelHotcuePalette->setPixmap(preview);

ColorPalette palette = mixxx::PredefinedColorPalettes::kPalettes[0];
ColorPalette palette = mixxx::PredefinedColorPalettes::kDefaultTrackColorPalette;
foreach (const ColorPalette& pal, mixxx::PredefinedColorPalettes::kPalettes) {
if (paletteName == pal.getName()) {
palette = pal;
Expand Down

0 comments on commit 49e6f2b

Please sign in to comment.