Skip to content

Commit

Permalink
Fix deprecated QDateTime(QDate) since Qt 5.14+
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed May 17, 2021
1 parent 256b91e commit d1f63fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,11 @@ QDate OptionsModel::getLimitTxnDate()

int64_t OptionsModel::getLimitTxnDateTime()
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QDateTime limitTxnDateTime(limitTxnDate);
#else
QDateTime limitTxnDateTime = limitTxnDate.startOfDay();
#endif

return limitTxnDateTime.toMSecsSinceEpoch() / 1000;
}
Expand Down

0 comments on commit d1f63fd

Please sign in to comment.