SUPERVGUI_Main* aGraph = dynamic_cast<SUPERVGUI_Main*>(view);
if ( aGraph ) {
// mkr: PAL12449 --->
- if ( !aGraph->isDataflowInStudy() ) {
+ if ( (( SalomeApp_Study* )(aGraph->getStudy()))->studyDS() && !aGraph->isDataflowInStudy() ) {
const int aWarnResult = QMessageBox::information(application()->desktop(), tr("MSG_INFO"),
tr("MSG_GRAPH_UNSAVED"),
QMessageBox::Yes, QMessageBox::No);
connect( myNameEdt, SIGNAL(textChanged(const QString&)), this, SLOT(nameChanged(const QString&)));
connect( myTypeCombo, SIGNAL(activated(const QString&)), this, SLOT(typeChanged(const QString&)));
+ // mkr: PAL12448
+ connect( myInList,SIGNAL(rightButtonClicked(QListBoxItem*, const QPoint&)), this, SLOT(itemDeselect(QListBoxItem*, const QPoint&)));
+ connect( myOutList,SIGNAL(rightButtonClicked(QListBoxItem*, const QPoint&)), this, SLOT(itemDeselect(QListBoxItem*, const QPoint&)));
+
myNode->getMain()->lockedGraph( true );
// asv : 11.01.05 : if a node is a loop node, then only INPUT ports can be added/removed
connect( myTypeCombo, SIGNAL(activated(const QString&)), this, SLOT(typeChanged(const QString&)));
}
-
-
+/*!
+ * Deselect the current selected item
+ */
+void SUPERVGUI_ManagePortsDlg::itemDeselect(QListBoxItem* item, const QPoint& point) {
+ // mkr: PAL12448
+ if ( item->isSelected() )
+ item->listBox()->setSelected(item, false);
+}
/*!
* Port parameters dialog definition (taken from SUPERVGUI_Node.cxx without change)
void nameChanged( const QString& name );
void typeChanged( const QString& type );
void itemChanged( QListBoxItem * item );
+ void itemDeselect(QListBoxItem* item, const QPoint& point); // mkr: PAL12448
protected:
virtual void showEvent( QShowEvent* theEvent );