diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-05-08 21:20:35 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-05-08 21:20:35 +0000 |
commit | c00e79dd68a68ab0ec30034612d3c8826107b8db (patch) | |
tree | ca92cbea4eacdf26eb8ac799075b3be7381467cc /muse2/awl | |
parent | 27cc37410cf3d0994f105fbadf135e6a43a440eb (diff) |
structure menu fixes
Diffstat (limited to 'muse2/awl')
-rw-r--r-- | muse2/awl/posedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/muse2/awl/posedit.cpp b/muse2/awl/posedit.cpp index e9cddd44..6ca49566 100644 --- a/muse2/awl/posedit.cpp +++ b/muse2/awl/posedit.cpp @@ -433,6 +433,8 @@ QValidator::State PosEdit::validate(QString& s,int& /*i*/) const int tb = AL::sigmap.ticksBeat(_pos.tick()); unsigned tm = AL::sigmap.ticksMeasure(_pos.tick()); + if (tm==0) + return QValidator::Invalid; int bm = tm / tb; validator->setRange(1, 9999); |