diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index ec5234dbf..16c4dcb00 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -964,7 +964,8 @@ void MainWindow::ToolDetail(bool checked) void MainWindow::ToolPiecePath(bool checked) { ToolSelectAllDrawObjects(); - SetToolButton(checked, Tool::PiecePath, "://cursor/path_cursor.png", tr("Select path objects."), + SetToolButton(checked, Tool::PiecePath, "://cursor/path_cursor.png", + tr("Select path objects, Shift - reverse direction curve"), &MainWindow::ClosedDialogPiecePath); } diff --git a/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp b/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp index d98a5ac1e..89fd992b8 100644 --- a/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp +++ b/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp @@ -140,18 +140,21 @@ void DialogPiecePath::ShowDialog(bool click) { if (click == false) { - emit ToolTip(""); - prepare = true; - - if (not m_showMode) + if (CreatePath().CountNodes() > 0) { - auto visPath = qobject_cast(vis); - SCASSERT(visPath != nullptr); - visPath->SetMode(Mode::Show); - visPath->RefreshGeometry(); + emit ToolTip(""); + prepare = true; + + if (not m_showMode) + { + auto visPath = qobject_cast(vis); + SCASSERT(visPath != nullptr); + visPath->SetMode(Mode::Show); + visPath->RefreshGeometry(); + } + setModal(true); + show(); } - setModal(true); - show(); } }