Explorar o código

ctkSettingsPanelTest was using old settings

When running the test more than once, the old settings were used and the
test was failing.
Julien Finet %!s(int64=14) %!d(string=hai) anos
pai
achega
c11e86f8b8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Libs/Widgets/Testing/Cpp/ctkSettingsPanelTest1.cpp

+ 1 - 0
Libs/Widgets/Testing/Cpp/ctkSettingsPanelTest1.cpp

@@ -37,6 +37,7 @@ int ctkSettingsPanelTest1(int argc, char * argv [] )
   QApplication app(argc, argv);
   
   QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Common ToolKit", "CTK");
+  settings.clear();
 
   ctkSettingsPanel settingsPanel;
   settingsPanel.setSettings(&settings);