Do not look up old ColorEntry in editColorItem

5bc0b561c4 changed ColorEntry from a
wrapper around QColor to a typedef.  Before that change, the wrapper
needed to exist and have its color property set to the new color.

Now, there is no reason to access the old color at all.  Entirely
remove the vestigial code.

Signed-off-by: Antonio Russo <aerusso@aerusso.net>
wilder
Antonio Russo 5 years ago
parent f743469c85
commit 0f6f9a2e2b
No known key found for this signature in database
GPG Key ID: CC324E5538D2EE86
  1. 4
      src/colorscheme/ColorSchemeEditor.cpp

@ -174,9 +174,7 @@ void ColorSchemeEditor::editColorItem(QTableWidgetItem *item)
colorSchemeRow += 2*COLOR_TABLE_ROW_LENGTH;
}
QColor entry(_colors->colorEntry(colorSchemeRow));
entry = color;
_colors->setColorTableEntry(colorSchemeRow, entry);
_colors->setColorTableEntry(colorSchemeRow, color);
emit colorsChanged(_colors);
}

Loading…
Cancel
Save