clear search field when reopening settings

This commit is contained in:
fourtf 2019-10-07 17:30:47 +02:00
parent 0c1da59564
commit 05bcf22af4
2 changed files with 6 additions and 0 deletions

View file

@ -285,6 +285,11 @@ void SettingsDialog::themeChangedEvent()
this->setPalette(palette);
}
void SettingsDialog::showEvent(QShowEvent *)
{
this->ui_.search->setText("");
}
///// Widget creation helpers
void SettingsDialog::onOkClicked()
{

View file

@ -39,6 +39,7 @@ public:
protected:
virtual void scaleChangedEvent(float newDpi) override;
virtual void themeChangedEvent() override;
virtual void showEvent(QShowEvent *) override;
private:
static SettingsDialog *handle;