Check if a path is valid. Should contains at least one object.
--HG-- branch : feature
This commit is contained in:
parent
1a73a1f870
commit
8a5c4a1a37
|
@ -964,7 +964,8 @@ void MainWindow::ToolDetail(bool checked)
|
|||
void MainWindow::ToolPiecePath(bool checked)
|
||||
{
|
||||
ToolSelectAllDrawObjects();
|
||||
SetToolButton<DialogPiecePath>(checked, Tool::PiecePath, "://cursor/path_cursor.png", tr("Select path objects."),
|
||||
SetToolButton<DialogPiecePath>(checked, Tool::PiecePath, "://cursor/path_cursor.png",
|
||||
tr("Select path objects, <b>Shift</b> - reverse direction curve"),
|
||||
&MainWindow::ClosedDialogPiecePath);
|
||||
}
|
||||
|
||||
|
|
|
@ -139,6 +139,8 @@ void DialogPiecePath::ChosenObject(quint32 id, const SceneObject &type)
|
|||
void DialogPiecePath::ShowDialog(bool click)
|
||||
{
|
||||
if (click == false)
|
||||
{
|
||||
if (CreatePath().CountNodes() > 0)
|
||||
{
|
||||
emit ToolTip("");
|
||||
prepare = true;
|
||||
|
@ -153,6 +155,7 @@ void DialogPiecePath::ShowDialog(bool click)
|
|||
setModal(true);
|
||||
show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user