X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGUI%2FSUPERVGUI_ManagePortsDlg.cxx;fp=src%2FSUPERVGUI%2FSUPERVGUI_ManagePortsDlg.cxx;h=fb4c5573d30bbf820b4cda2f891f9e3fc019c70d;hb=1970b36cec5d497882809463a059260f27fbb94f;hp=96764c856bae06fe67f960828a516ac8b67718c7;hpb=736219276cf4b35eb90b7e75db848dedc0c5b7e3;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx index 96764c8..fb4c557 100644 --- a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx +++ b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx @@ -424,7 +424,7 @@ void SUPERVGUI_ManagePortsDlg::addPort( QListBox* theLB ) { } } if ( found ) - QMessageBox::warning( SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_PORT_EXIST") ); + QMessageBox::warning( this, tr("ERROR"), tr("MSG_PORT_EXIST") ); // mkr : IPAL10386 else new PortListItem( theLB, name, myTypeCombo->currentText() ); } @@ -603,7 +603,7 @@ void SUPERVGUI_PortParamsDlg::clickOnOk() if (getName().isEmpty() || getType().isEmpty()) QMessageBox::warning( SUIT_Session::session()->activeApplication()->desktop(), tr( "ERROR" ), tr( "MSG_CANT_CREATE_PORT" ) ); else if (myPortsNames.contains(getName())) - QMessageBox::warning( SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_PORT_EXIST") ); + QMessageBox::warning( this, tr("ERROR"), tr("MSG_PORT_EXIST") ); // mkr : IPAL10386 else accept(); }