Skip to content

Commit

Permalink
Fix applying certain color roles when loading palette from file
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jun 8, 2023
1 parent c528926 commit cc05211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paletteeditor/paletteeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cc05211

Please sign in to comment.