Salome HOME
Fix for bug IPAL10386 : Edit Ports : InLine : Error "Port with such name
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_ManagePortsDlg.cxx
index 96764c856bae06fe67f960828a516ac8b67718c7..fb4c5573d30bbf820b4cda2f891f9e3fc019c70d 100644 (file)
@@ -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();
 }