Fix crash. Made mistake when created method SaveDialogChange.

--HG--
branch : feature
This commit is contained in:
dismine 2014-06-12 17:29:08 +03:00
parent c23a93037c
commit 43f8dffaf2

View File

@ -114,7 +114,8 @@ void VDrawTool::FullUpdateFromGuiOk(int result)
{
SaveDialogChange();
}
DialogLinkDestroy();
delete dialog;
dialog=nullptr;
}
//---------------------------------------------------------------------------------------------------------------------
@ -148,7 +149,6 @@ void VDrawTool::SaveDialogChange()
//---------------------------------------------------------------------------------------------------------------------
void VDrawTool::DialogLinkDestroy()
{
delete this->dialog;
this->dialog=nullptr;
}