X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmarkerdialog.cpp;h=c7c04809d0d12c32f8f7031fafbb7d44b06e7869;hb=5143c0fd6b774ee8a036427bb1630126270a6364;hp=2f9ff112928e55f7f144f3fbc9c7d60a9e39ec3b;hpb=7bd75a44d3aa7708df8a20bf1be9b6e28f2e467f;p=kdenlive diff --git a/src/markerdialog.cpp b/src/markerdialog.cpp index 2f9ff112..c7c04809 100644 --- a/src/markerdialog.cpp +++ b/src/markerdialog.cpp @@ -83,11 +83,13 @@ MarkerDialog::MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, cons connect(marker_position, SIGNAL(textChanged(const QString &)), this, SIGNAL(updateThumb())); } else clip_thumb->setHidden(true); + marker_position->setInputMask(""); if (m_frameDisplay) { - QValidator *valid = new QIntValidator(this); - marker_position->setInputMask(""); + QIntValidator *valid = new QIntValidator(this); + valid->setBottom(0); marker_position->setValidator(valid); - } else marker_position->setInputMask(tc.inputMask()); + } else + marker_position->setValidator(tc.validator()); marker_position->setText(tc.getDisplayTimecode(t.time(), m_frameDisplay)); marker_comment->setText(t.comment());