]> Creatis software - clitk.git/commitdiff
In PacsConnection GUI: debug save button into Configuration tab
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 26 Jul 2016 13:51:02 +0000 (15:51 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 26 Jul 2016 13:51:02 +0000 (15:51 +0200)
vv/vvQPacsConnection.cxx

index ce381107b803dce5f05bb2a11d7632e7c898d5e2..4ae0d33b9981bdddc7a31e98e2f2aa0b55c16b7f 100644 (file)
@@ -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