X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Ftimestampspinbox.cpp;h=fd52c504e240d1d907d1e47cdeca0ad9d2c0ab79;hp=233ff6484f562b9d723a0bd74a9e587c82fc686d;hb=870ea3dbf35b182e120c5d84ab89bf9cb7691232;hpb=3ccf0f7f5b1b31ac628a983a2becee6f4c4c1507 diff --git a/pv/widgets/timestampspinbox.cpp b/pv/widgets/timestampspinbox.cpp index 233ff648..fd52c504 100644 --- a/pv/widgets/timestampspinbox.cpp +++ b/pv/widgets/timestampspinbox.cpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include "timestampspinbox.hpp" @@ -104,8 +103,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(); } @@ -118,5 +116,5 @@ void TimestampSpinBox::updateEdit() lineEdit()->setText(newtext); } -} // widgets -} // pv +} // namespace widgets +} // namespace pv