Skip to content

Commit

Permalink
Force isRunning flag to be not null #668
Browse files Browse the repository at this point in the history
SQL error on "Is Running" uncheck fixed
QE ver 2.5.3
  • Loading branch information
fvacek committed Jan 16, 2022
1 parent 1c07236 commit b7d6dab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libqf/libqfcore/src/model/tablemodel.cpp
Expand Up @@ -300,7 +300,7 @@ bool TableModel::setData(const QModelIndex &index, const QVariant &value, int ro
}
else if(role == Qt::CheckStateRole) {
//qfInfo() << __LINE__;
bool chk_val = (value.toInt() == Qt::Unchecked)? 0: 1;
bool chk_val = (value.toInt() != Qt::Unchecked);
ret = setValue(index.row(), index.column(), chk_val);
if(ret)
emit dataChanged(index, index);
Expand Down
9 changes: 6 additions & 3 deletions quickevent/app/quickevent/plugins/Runs/src/cardflagsdialog.ui
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>299</width>
<width>363</width>
<height>195</height>
</rect>
</property>
Expand All @@ -17,14 +17,17 @@
<item>
<widget class="QCheckBox" name="cbxCardLent">
<property name="text">
<string>Card rent requested</string>
<string>Card rented / rent requested</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbxCardInLentTable">
<property name="toolTip">
<string>Card exists in cards to rent table, see Competitors-&gt;Cards-&gt;Cards to rent</string>
</property>
<property name="text">
<string>Card in rent cards table</string>
<string>Card rented from rent table</string>
</property>
</widget>
</item>
Expand Down
Expand Up @@ -127,7 +127,7 @@ bool RunsTableModel::setValue(int row_ix, int column_ix, const QVariant &val)
return false;
}
}
return Super::setValue(row_ix, column_ix, is_running? is_running: QVariant());
return Super::setValue(row_ix, column_ix, is_running);
}
if(column_ix == col_runs_finishTimeMs) {
QVariant start_ms = value(row_ix, col_runs_startTimeMs);
Expand Down
2 changes: 1 addition & 1 deletion quickevent/app/quickevent/src/appversion.h
@@ -1,4 +1,4 @@
#pragma once

#define APP_VERSION "2.5.2"
#define APP_VERSION "2.5.3"

0 comments on commit b7d6dab

Please sign in to comment.