Fix default color scheme selection
This commit is contained in:
@@ -33,7 +33,11 @@ void ColorSchemer::apply(const QString &name)
|
|||||||
|
|
||||||
int ColorSchemer::indexForScheme(const QString &name) const
|
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
|
QString ColorSchemer::nameForIndex(int index) const
|
||||||
|
|||||||
Reference in New Issue
Block a user