removed milliseconds from saved file name, fixed reset all settings of childrend of a groupbox which is also a prameter

This commit is contained in:
Mathieu Labbe
2015-01-07 17:51:15 -05:00
parent 7f7d05e243
commit db382d6149
2 changed files with 5 additions and 1 deletions

View File

@@ -925,6 +925,10 @@ void PreferencesDialog::resetSettings(QGroupBox * groupBox)
if(uContains(defaults, key))
{
this->setParameter(key, defaults.at(key));
if(qobject_cast<const QGroupBox*>(children.at(i)))
{
this->resetSettings((QGroupBox*)children.at(i));
}
}
else if(qobject_cast<const QGroupBox*>(children.at(i)))
{