diff --git a/plugins/weatherplugin/weathersettings.cpp b/plugins/weatherplugin/weathersettings.cpp index b89296f..a9a51b6 100644 --- a/plugins/weatherplugin/weathersettings.cpp +++ b/plugins/weatherplugin/weathersettings.cpp @@ -11,7 +11,8 @@ WeatherSettings::WeatherSettings(ZeiterfassungSettings &settings, QWidget *paren auto layout = new QFormLayout(this); layout->setMargin(0); - layout->addRow(tr("Weather API:"), new QLineEdit(this)); + m_lineEdit = new QLineEdit(this); + layout->addRow(tr("Weather API:"), m_lineEdit); setLayout(layout); } diff --git a/plugins/weatherplugin/weathersettings.h b/plugins/weatherplugin/weathersettings.h index f4a9e8d..e0a1b7a 100644 --- a/plugins/weatherplugin/weathersettings.h +++ b/plugins/weatherplugin/weathersettings.h @@ -20,6 +20,8 @@ public Q_SLOTS: private: ZeiterfassungSettings &m_settings; + + QLineEdit *m_lineEdit; }; #endif // WEATHERSETTINGS_H