From cc052116640e3113638fdcf2d625330fecc44d63 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 8 Jun 2023 16:42:09 +0200 Subject: [PATCH] Fix applying certain color roles when loading palette from file --- paletteeditor/paletteeditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paletteeditor/paletteeditor.cpp b/paletteeditor/paletteeditor.cpp index 0d4b4f9..052d355 100644 --- a/paletteeditor/paletteeditor.cpp +++ b/paletteeditor/paletteeditor.cpp @@ -183,6 +183,8 @@ void PaletteEditor::load() auto errorMessage = QString(); if (loadPalette(dialog.selectedFiles().constFirst(), &pal, &errorMessage)) { setPalette(pal); + // apply again as otherwise highlight and possibly other roles are not shown until the next restart + setPalette(pal, pal); } else { QMessageBox::warning(this, tr("Error reading palette"), errorMessage); }