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();
|
auto errorMessage = QString();
|
||||||
if (loadPalette(dialog.selectedFiles().constFirst(), &pal, &errorMessage)) {
|
if (loadPalette(dialog.selectedFiles().constFirst(), &pal, &errorMessage)) {
|
||||||
setPalette(pal);
|
setPalette(pal);
|
||||||
|
// apply again as otherwise highlight and possibly other roles are not shown until the next restart
|
||||||
|
setPalette(pal, pal);
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::warning(this, tr("Error reading palette"), errorMessage);
|
QMessageBox::warning(this, tr("Error reading palette"), errorMessage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue