From 02cb84c4a173f1780088c832bae0efa067517df5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 19 Mar 2016 16:29:26 +0200 Subject: [PATCH] Show list of points from the begin of the list. --HG-- branch : feature --- src/libs/vtools/dialogs/tools/dialogcubicbezierpath.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vtools/dialogs/tools/dialogcubicbezierpath.cpp b/src/libs/vtools/dialogs/tools/dialogcubicbezierpath.cpp index 03cb04b65..bfa063f76 100644 --- a/src/libs/vtools/dialogs/tools/dialogcubicbezierpath.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcubicbezierpath.cpp @@ -88,6 +88,11 @@ void DialogCubicBezierPath::SetPath(const VCubicBezierPath &value) SCASSERT(visPath != nullptr); visPath->setPath(path); ui->listWidget->blockSignals(false); + + if (ui->listWidget->count() > 0) + { + ui->listWidget->setCurrentRow(0); + } } //---------------------------------------------------------------------------------------------------------------------