From 0f6f9a2e2b1d655a0f421676b05d468d9802d871 Mon Sep 17 00:00:00 2001 From: Antonio Russo Date: Sat, 19 Dec 2020 12:11:50 -0700 Subject: [PATCH] Do not look up old ColorEntry in editColorItem 5bc0b561c483dd326384dab7e1aa1192774b48fa 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 --- src/colorscheme/ColorSchemeEditor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/colorscheme/ColorSchemeEditor.cpp b/src/colorscheme/ColorSchemeEditor.cpp index 8957258a..bab352a8 100644 --- a/src/colorscheme/ColorSchemeEditor.cpp +++ b/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); }