Simplify connection from QComboBox

All we want is the new text after it changes.
This commit is contained in:
Luis Ángel San Martín 2021-10-07 22:29:50 +02:00
parent ffc0f9ec8a
commit 2dbfc6cab5

View File

@ -117,7 +117,7 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
portLabel->setStyleSheet("QLabel {color:#575757; font-size:18px; font-family: Arial;}");
ip = new QComboBox(this);
connect(ip, QOverload<const QString &>::of(&QComboBox::activated), this, &ServerConfigDialog::regenerateQR);
connect(ip, &QComboBox::currentTextChanged, this, &ServerConfigDialog::regenerateQR);
ip->setFixedWidth(200);
ip->move(332, 153);