QTfrontend/gameuiconfig.cpp
changeset 1487 b4cc59a6d50a
parent 1235 070629f3902d
child 1777 88674c291331
--- a/QTfrontend/gameuiconfig.cpp	Sun Nov 09 07:58:56 2008 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Sun Nov 09 09:47:10 2008 +0000
@@ -60,6 +60,7 @@
 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
 
 	Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", false).toBool());
+	Form->ui.pageOptions->CBNameWithDate->setChecked(value("misc/appendTimeToRecords", false).toBool());
 
 	depth = QApplication::desktop()->depth();
 	if (depth < 16) depth = 16;
@@ -109,6 +110,7 @@
 	setValue("fps/interval", Form->ui.pageOptions->fpsedit->value());
 
 	setValue("misc/altdamage", isAltDamageEnabled());
+	setValue("misc/appendTimeToRecords", appendDateTimeToRecordName());
 }
 
 QRect GameUIConfig::vid_Resolution()
@@ -150,7 +152,12 @@
 
 bool GameUIConfig::isAltDamageEnabled()
 {
-	return Form->ui.pageOptions->CBAltDamage->isChecked();;
+	return Form->ui.pageOptions->CBAltDamage->isChecked();
+}
+
+bool GameUIConfig::appendDateTimeToRecordName()
+{
+	return Form->ui.pageOptions->CBNameWithDate->isChecked();
 }
 
 quint8 GameUIConfig::timerInterval()