Fix default color scheme selection

This commit is contained in:
Tobias Fella
2021-10-03 14:31:16 +02:00
parent 1345ddc9ee
commit 4511c1a07e

View File

@@ -33,7 +33,11 @@ void ColorSchemer::apply(const QString &name)
int ColorSchemer::indexForScheme(const QString &name) const
{
return c->indexForScheme(name).row();
auto index = c->indexForScheme(name).row();
if (index == -1) {
index = 0;
}
return index;
}
QString ColorSchemer::nameForIndex(int index) const