|
@@ -82,7 +82,16 @@ DialogAddRoadFromCDA::~DialogAddRoadFromCDA()
|
|
|
void DialogAddRoadFromCDA::on_pushButton_Create_clicked()
|
|
|
{
|
|
|
OpenDrive * pxodr = mpxodr;
|
|
|
- CDAProc::ProcCDA(mcdadraw,pxodr);
|
|
|
+ int nrtn = CDAProc::ProcCDA(mcdadraw,pxodr);
|
|
|
+
|
|
|
+ if(nrtn == 0)
|
|
|
+ {
|
|
|
+ this->accept();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ QMessageBox::warning(this,tr("Warning"),tr("CDAProc ProcRoad Fail."),QMessageBox::YesAll);
|
|
|
+ }
|
|
|
// OpenDrive * pxodr = mpxodr;
|
|
|
// std::string strtype = ui->comboBox_Type->currentText().toStdString();
|
|
|
// std::string strradius = ui->lineEdit_radius->text().toStdString();
|