# HG changeset patch # User Chris Cannam # Date 1557939103 -3600 # Node ID 28f9ff7864c6c127a60098ee3144a35e0db59b73 # Parent 452b48b29c2d587014b5955cb7e80b8b6c3d95ec Add error field to alignment model diff -r 452b48b29c2d -r 28f9ff7864c6 data/model/AlignmentModel.cpp --- a/data/model/AlignmentModel.cpp Mon May 13 15:43:23 2019 +0100 +++ b/data/model/AlignmentModel.cpp Wed May 15 17:51:43 2019 +0100 @@ -76,8 +76,9 @@ bool AlignmentModel::isOK() const { + if (m_error != "") return false; if (m_rawPath) return m_rawPath->isOK(); - else return true; + return true; } sv_frame_t diff -r 452b48b29c2d -r 28f9ff7864c6 data/model/AlignmentModel.h --- a/data/model/AlignmentModel.h Mon May 13 15:43:23 2019 +0100 +++ b/data/model/AlignmentModel.h Wed May 15 17:51:43 2019 +0100 @@ -36,6 +36,10 @@ ~AlignmentModel(); bool isOK() const override; + + void setError(QString error) { m_error = error; } + QString getError() const { return m_error; } + sv_frame_t getStartFrame() const override; sv_frame_t getEndFrame() const override; sv_samplerate_t getSampleRate() const override; @@ -86,6 +90,7 @@ mutable PathModel *m_reversePath; // I own this bool m_pathBegun; bool m_pathComplete; + QString m_error; void constructPath() const; void constructReversePath() const;