Fix applying certain color roles when loading palette from file
This commit is contained in:
parent
c528926ce6
commit
cc05211664
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue