Bug fix for cut & paste errors in Qt TAS saving options dialogs.

This commit is contained in:
mjbudd77 2022-01-06 05:44:27 -05:00
parent 0badec6124
commit d1fa388846
1 changed files with 20 additions and 20 deletions

View File

@ -2485,12 +2485,12 @@ void TasEditorWindow::saveProjectCompactCb(void)
hbox->addWidget( okButton ); hbox->addWidget( okButton );
hbox->addWidget( cancelButton ); hbox->addWidget( cancelButton );
binaryInput->setChecked( taseditorConfig.projectSavingOptions_SaveInBinary ); binaryInput->setChecked( taseditorConfig.saveCompact_SaveInBinary );
saveMarkers->setChecked( taseditorConfig.projectSavingOptions_SaveMarkers ); saveMarkers->setChecked( taseditorConfig.saveCompact_SaveMarkers );
saveBookmarks->setChecked( taseditorConfig.projectSavingOptions_SaveBookmarks ); saveBookmarks->setChecked( taseditorConfig.saveCompact_SaveBookmarks );
saveHistory->setChecked( taseditorConfig.projectSavingOptions_SaveHistory ); saveHistory->setChecked( taseditorConfig.saveCompact_SaveHistory );
savePianoRoll->setChecked( taseditorConfig.projectSavingOptions_SavePianoRoll ); savePianoRoll->setChecked( taseditorConfig.saveCompact_SavePianoRoll );
saveSelection->setChecked( taseditorConfig.projectSavingOptions_SaveSelection ); saveSelection->setChecked( taseditorConfig.saveCompact_SaveSelection );
allFrames->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_ALL ); allFrames->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_ALL );
every16thFrame->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_16TH ); every16thFrame->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_16TH );
@ -2503,12 +2503,12 @@ void TasEditorWindow::saveProjectCompactCb(void)
if ( ret == QDialog::Accepted ) if ( ret == QDialog::Accepted )
{ {
taseditorConfig.projectSavingOptions_SaveInBinary = binaryInput->isChecked(); taseditorConfig.saveCompact_SaveInBinary = binaryInput->isChecked();
taseditorConfig.projectSavingOptions_SaveMarkers = saveMarkers->isChecked(); taseditorConfig.saveCompact_SaveMarkers = saveMarkers->isChecked();
taseditorConfig.projectSavingOptions_SaveBookmarks = saveBookmarks->isChecked(); taseditorConfig.saveCompact_SaveBookmarks = saveBookmarks->isChecked();
taseditorConfig.projectSavingOptions_SaveHistory = saveHistory->isChecked(); taseditorConfig.saveCompact_SaveHistory = saveHistory->isChecked();
taseditorConfig.projectSavingOptions_SavePianoRoll = savePianoRoll->isChecked(); taseditorConfig.saveCompact_SavePianoRoll = savePianoRoll->isChecked();
taseditorConfig.projectSavingOptions_SaveSelection = saveSelection->isChecked(); taseditorConfig.saveCompact_SaveSelection = saveSelection->isChecked();
if ( allFrames->isChecked() ) if ( allFrames->isChecked() )
{ {
@ -3215,10 +3215,10 @@ void TasEditorWindow::openProjectSaveOptions(void)
savePianoRoll->setChecked( taseditorConfig.projectSavingOptions_SavePianoRoll ); savePianoRoll->setChecked( taseditorConfig.projectSavingOptions_SavePianoRoll );
saveSelection->setChecked( taseditorConfig.projectSavingOptions_SaveSelection ); saveSelection->setChecked( taseditorConfig.projectSavingOptions_SaveSelection );
allFrames->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_ALL ); allFrames->setChecked( taseditorConfig.projectSavingOptions_GreenzoneSavingMode == GREENZONE_SAVING_MODE_ALL );
every16thFrame->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_16TH ); every16thFrame->setChecked( taseditorConfig.projectSavingOptions_GreenzoneSavingMode == GREENZONE_SAVING_MODE_16TH );
markedFrames->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_MARKED ); markedFrames->setChecked( taseditorConfig.projectSavingOptions_GreenzoneSavingMode == GREENZONE_SAVING_MODE_MARKED );
dontSave->setChecked( taseditorConfig.saveCompact_GreenzoneSavingMode == GREENZONE_SAVING_MODE_NO ); dontSave->setChecked( taseditorConfig.projectSavingOptions_GreenzoneSavingMode == GREENZONE_SAVING_MODE_NO );
connect( autoSaveOpt, SIGNAL(clicked(bool)), autoSavePeriod, SLOT(setEnabled(bool)) ); connect( autoSaveOpt, SIGNAL(clicked(bool)), autoSavePeriod, SLOT(setEnabled(bool)) );
connect( autoSaveOpt, SIGNAL(clicked(bool)), saveSilentOpt , SLOT(setEnabled(bool)) ); connect( autoSaveOpt, SIGNAL(clicked(bool)), saveSilentOpt , SLOT(setEnabled(bool)) );
@ -3242,19 +3242,19 @@ void TasEditorWindow::openProjectSaveOptions(void)
if ( allFrames->isChecked() ) if ( allFrames->isChecked() )
{ {
taseditorConfig.saveCompact_GreenzoneSavingMode = GREENZONE_SAVING_MODE_ALL; taseditorConfig.projectSavingOptions_GreenzoneSavingMode = GREENZONE_SAVING_MODE_ALL;
} }
else if ( every16thFrame->isChecked() ) else if ( every16thFrame->isChecked() )
{ {
taseditorConfig.saveCompact_GreenzoneSavingMode = GREENZONE_SAVING_MODE_16TH; taseditorConfig.projectSavingOptions_GreenzoneSavingMode = GREENZONE_SAVING_MODE_16TH;
} }
else if ( markedFrames->isChecked() ) else if ( markedFrames->isChecked() )
{ {
taseditorConfig.saveCompact_GreenzoneSavingMode = GREENZONE_SAVING_MODE_MARKED; taseditorConfig.projectSavingOptions_GreenzoneSavingMode = GREENZONE_SAVING_MODE_MARKED;
} }
else else
{ {
taseditorConfig.saveCompact_GreenzoneSavingMode = GREENZONE_SAVING_MODE_NO; taseditorConfig.projectSavingOptions_GreenzoneSavingMode = GREENZONE_SAVING_MODE_NO;
} }
} }
} }