Skip to content

Commit 3eda731

Browse files
committed
BUG? Vkládání závodníka #478 fixed
1 parent 8690edb commit 3eda731

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

quickevent/app/plugins/Competitors/src/competitorwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,11 @@ bool CompetitorWidget::saveData()
389389
qf::core::model::DataDocument::EditState edit_state = doc->saveEditState();
390390
bool ret = false;
391391
try {
392-
qf::core::sql::Transaction transaction;
392+
//qf::core::sql::Transaction transaction;
393393
//doc->setSaveSiidToRuns(true);
394394
if(Super::saveData())
395395
ret = saveRunsTable();
396-
transaction.commit();
396+
//transaction.commit();
397397
}
398398
catch (BadDataInputException &e) {
399399
qf::qmlwidgets::dialogs::MessageBox::showError(this, e.message());

quickevent/app/plugins/Event/qml/DbSchema.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Schema {
248248
},
249249
Index {fields: ['stageId']; references: ForeignKeyReference {table: 'stages'; fields: ['id']; } },
250250
Index {fields: ['relayId', 'leg']; unique: false },
251-
Index {fields: ['stageId', 'siId']; unique: false }
251+
Index {fields: ['stageId', 'siId']; unique: false } // might be duplicate to enable SI card sharing in not overlapping runs
252252
]
253253
},
254254
Table { name: 'relays'

0 commit comments

Comments
 (0)