Skip to content

Commit

Permalink
Handle font color selection correctly
Browse files Browse the repository at this point in the history
This inverted logic was introduced during porting.
  • Loading branch information
schuay committed Nov 22, 2015
1 parent 7f3e70e commit f6d598d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/settingswindow.cpp
Expand Up @@ -52,7 +52,7 @@ void SettingsWindow::selectSolvedColor()
{
QColor color(m_font_color_solved);
color = QColorDialog::getColor(color, this);
if ( color.isValid() ) {
if (!color.isValid()) {
return;
}
m_font_color_solved = color.name();
Expand All @@ -63,7 +63,7 @@ void SettingsWindow::selectUnsolvedColor()
{
QColor color(m_font_color_unsolved);
color = QColorDialog::getColor(color, this);
if ( color.isValid() ) {
if (!color.isValid()) {
return;
}
m_font_color_unsolved = color.name();
Expand Down

0 comments on commit f6d598d

Please sign in to comment.