Fixed Valentina crash.
Valentina crashes if creating tool was canceled. --HG-- branch : develop
This commit is contained in:
parent
e9abab4eb2
commit
0ef92f9cba
|
@ -720,7 +720,10 @@ void MainWindow::ClosedDialogWithApply(int result, VMainGraphicsScene *scene)
|
||||||
}
|
}
|
||||||
ArrowTool(true);
|
ArrowTool(true);
|
||||||
ui->view->itemClicked(vtool);// Don't check for nullptr here
|
ui->view->itemClicked(vtool);// Don't check for nullptr here
|
||||||
vtool->setFocus();
|
if (vtool)
|
||||||
|
{
|
||||||
|
vtool->setFocus();
|
||||||
|
}
|
||||||
// If insert not to the end of file call lite parse
|
// If insert not to the end of file call lite parse
|
||||||
if (doc->getCursor() > 0)
|
if (doc->getCursor() > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user