/[svn]/qsampler/trunk/src/qsamplerOptionsForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerOptionsForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3648 by capela, Tue Dec 10 10:34:06 2019 UTC revision 3649 by capela, Tue Dec 10 15:27:16 2019 UTC
# Line 591  void OptionsForm::resetCustomColorThemes Line 591  void OptionsForm::resetCustomColorThemes
591                  PaletteForm::namedPaletteList(&m_pOptions->settings()));                  PaletteForm::namedPaletteList(&m_pOptions->settings()));
592    
593          int iCustomColorTheme = 0;          int iCustomColorTheme = 0;
594          if (!sCustomColorTheme.isEmpty())          if (!sCustomColorTheme.isEmpty()) {
595                  iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText(                  iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText(
596                          sCustomColorTheme);                          sCustomColorTheme);
597                    if (iCustomColorTheme < 0)
598                            iCustomColorTheme = 0;
599            }
600          m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme);          m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme);
601  }  }
602    
# Line 608  void OptionsForm::resetCustomStyleThemes Line 611  void OptionsForm::resetCustomStyleThemes
611          m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys());          m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys());
612    
613          int iCustomStyleTheme = 0;          int iCustomStyleTheme = 0;
614          if (!sCustomStyleTheme.isEmpty())          if (!sCustomStyleTheme.isEmpty()) {
615                  iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText(                  iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText(
616                          sCustomStyleTheme);                          sCustomStyleTheme);
617                    if (iCustomStyleTheme < 0)
618                            iCustomStyleTheme = 0;
619            }
620          m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme);          m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme);
621  }  }
622    

Legend:
Removed from v.3648  
changed lines
  Added in v.3649

  ViewVC Help
Powered by ViewVC