void ExclusaPtyWnd::on_btn_accept_clicked()
{
- exclusa->set_name( txt_exclusa_name->get_text() );
+ on_btn_apply_clicked();
+ if (! exclusa->workplace->chek_name(txt_exclusa_name->get_text(), exclusa->get_id()) )
hide();
}
void ExclusaPtyWnd::on_btn_apply_clicked()
{
exclusa->set_name( txt_exclusa_name->get_text() );
+ if ( exclusa->workplace->chek_name(txt_exclusa_name->get_text(), exclusa->get_id()) )
+ dlg_name->show();
+ else
+ exclusa->set_name( txt_exclusa_name->get_text() );
}
void ExclusaPtyWnd::on_rd_btn_close_clicked()