diff options
Diffstat (limited to 'paperreplaymodel.cc')
-rw-r--r-- | paperreplaymodel.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paperreplaymodel.cc b/paperreplaymodel.cc index 4c40f76..dcab5cf 100644 --- a/paperreplaymodel.cc +++ b/paperreplaymodel.cc @@ -98,7 +98,7 @@ void PaperReplayModel::refresh() { beginResetModel(); _sessions = _replay->sessions(); - std::sort(_sessions.begin(), _sessions.end(), PaperReplay::Session::startTimeLess); + std::sort(_sessions.begin(), _sessions.end(), PaperReplay::Session::compareByStartTime); endResetModel(); } @@ -116,7 +116,7 @@ QString PaperReplayModel::getSessionName(const PaperReplay::Session &session) co QString PaperReplayModel::getSessionLength(const PaperReplay::Session &session) const { - qint64 msecs = session.endTime() - session.startTime(); + quint64 msecs = session.duration(); uint secs = msecs / 1000; uint mins = secs / 60; secs %= 60; |