X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_StreamDlg.cxx;h=91373c422fc3965608e5cef0e725e4ccfcbf62c0;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=b1a208a88ae35365146341bd62238da0f640de20;hpb=fafee81650721287cc577a7f26c2e6e640f58a89;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_StreamDlg.cxx b/src/HYDROGUI/HYDROGUI_StreamDlg.cxx index b1a208a8..91373c42 100644 --- a/src/HYDROGUI/HYDROGUI_StreamDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_StreamDlg.cxx @@ -56,7 +56,7 @@ HYDROGUI_StreamDlg::HYDROGUI_StreamDlg( HYDROGUI_Module* theModule, const QStrin anAxisLayout->addWidget( myAxes ); myProfiles = new QListWidget( aParamGroup ); - myProfiles->setSelectionMode( QListWidget::MultiSelection ); + myProfiles->setSelectionMode( QListWidget::ExtendedSelection ); myProfiles->setEditTriggers( QListWidget::NoEditTriggers ); myProfiles->setViewMode( QListWidget::ListMode ); myProfiles->setSortingEnabled( false ); @@ -178,7 +178,5 @@ void HYDROGUI_StreamDlg::onRemoveProfiles() } } - if ( !aSelectedProfiles.isEmpty() ) { - emit RemoveProfiles( aSelectedProfiles ); - } + emit RemoveProfiles( aSelectedProfiles ); }