From 631b9ba1c39b683689851c5465667bc8c6392725 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 26 Jul 2016 15:51:02 +0200 Subject: [PATCH] In PacsConnection GUI: debug save button into Configuration tab --- vv/vvQPacsConnection.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.47.1