mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Update dialog info when it is shown
This commit is contained in:
parent
9b196a655a
commit
76347060c7
@ -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
|
||||
|
@ -13,6 +13,7 @@ class ServerConfigDialog : public QDialog
|
||||
Q_OBJECT
|
||||
public:
|
||||
ServerConfigDialog(QWidget *parent = 0);
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
private:
|
||||
QComboBox *ip;
|
||||
|
Loading…
Reference in New Issue
Block a user