Fix applying certain color roles when loading palette from file

This commit is contained in:
Martchus 2023-06-08 16:42:09 +02:00
parent c528926ce6
commit cc05211664
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}