From: mkr Date: Mon, 21 Nov 2005 09:37:27 +0000 (+0000) Subject: Fix for bug IPAL10386 : Edit Ports : InLine : Error "Port with such name X-Git-Tag: BR_3_1_0_deb~5 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsuperv.git;a=commitdiff_plain;h=1970b36cec5d497882809463a059260f27fbb94f Fix for bug IPAL10386 : Edit Ports : InLine : Error "Port with such name already exists" dlg goes under. --- 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(); }