Update dialog info when it is shown

This commit is contained in:
Luis Ángel San Martín 2023-04-29 09:06:13 +02:00
parent 9b196a655a
commit 76347060c7
2 changed files with 8 additions and 0 deletions

View File

@ -113,6 +113,13 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
connect(check, &QCheckBox::stateChanged, this, &ServerConfigDialog::enableServer);
}
void ServerConfigDialog::showEvent(QShowEvent *event)
{
QDialog::showEvent(event);
generateQR();
}
void ServerConfigDialog::enableServer(int status)
{
QSettings *settings = new QSettings(YACReader::getSettingsPath() + "/YACReaderLibrary.ini", QSettings::IniFormat); // TODO unificar la creación del fichero de config con el servidor

View File

@ -13,6 +13,7 @@ class ServerConfigDialog : public QDialog
Q_OBJECT
public:
ServerConfigDialog(QWidget *parent = 0);
void showEvent(QShowEvent *event) override;
private:
QComboBox *ip;