From: tbaudier Date: Tue, 26 Jul 2016 13:51:02 +0000 (+0200) Subject: In PacsConnection GUI: debug save button into Configuration tab X-Git-Tag: v1.4.0~2^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=631b9ba1c39b683689851c5465667bc8c6392725;p=clitk.git In PacsConnection GUI: debug save button into Configuration tab --- diff --git a/vv/vvQPacsConnection.cxx b/vv/vvQPacsConnection.cxx index ce38110..4ae0d33 100644 --- a/vv/vvQPacsConnection.cxx +++ b/vv/vvQPacsConnection.cxx @@ -55,8 +55,13 @@ void vvQPacsConnection::removeServer() // modify a Dicom Server in VV settings void vvQPacsConnection::modifyServer() { + int indexCombo = ui.networkCombo->currentIndex(); + removeDicomServer(m_nickname); AddDicomServer(ui.NameEdit->text().toStdString(),ui.AETitleEdit->text().toStdString(),ui.AdressEdit->text().toStdString(),ui.PortEdit->text().toStdString()); - removeServer(); + ui.networkCombo->clear(); + ui.networkCombo->addItem(QString()); + ui.networkCombo->addItems(getDicomServers()); + ui.networkCombo->setCurrentIndex(indexCombo); } // refresh the list of Dicom Servers available from VV settings