X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fwidgets%2Ftimestampspinbox.cpp;h=463a846277d814bcebed936335e18d73a6314f55;hb=d9177e6cfafcbb3bdca8f8529e7c74f6a56d0a1a;hp=233ff6484f562b9d723a0bd74a9e587c82fc686d;hpb=3ccf0f7f5b1b31ac628a983a2becee6f4c4c1507;p=pulseview.git diff --git a/pv/widgets/timestampspinbox.cpp b/pv/widgets/timestampspinbox.cpp index 233ff648..463a8462 100644 --- a/pv/widgets/timestampspinbox.cpp +++ b/pv/widgets/timestampspinbox.cpp @@ -104,8 +104,7 @@ void TimestampSpinBox::on_editingFinished() captures.removeFirst(); // remove entire match QString str = captures.join(""); setValue(pv::util::Timestamp(str.toStdString())); - } - else { + } else { // replace the malformed entered string with the old value updateEdit(); }