Call SettingsPage::showEvent from child class implementations

This commit is contained in:
Jim Broadus 2020-07-06 22:20:16 -07:00 committed by John Maguire
parent 0fcb1df200
commit 7d28e8700b
2 changed files with 9 additions and 3 deletions

View File

@ -192,7 +192,7 @@ void GlobalSearchSettingsPage::CurrentProviderChanged(QTreeWidgetItem* item) {
}
void GlobalSearchSettingsPage::showEvent(QShowEvent* e) {
QWidget::showEvent(e);
SettingsPage::showEvent(e);
// Update the logged-in state of each item when we come back to this page in
// the dialog.

View File

@ -117,9 +117,15 @@ NotificationsSettingsPage::~NotificationsSettingsPage() {
delete ui_;
}
void NotificationsSettingsPage::showEvent(QShowEvent*) { UpdatePopupVisible(); }
void NotificationsSettingsPage::showEvent(QShowEvent* event) {
SettingsPage::showEvent(event);
UpdatePopupVisible();
}
void NotificationsSettingsPage::hideEvent(QHideEvent*) { UpdatePopupVisible(); }
void NotificationsSettingsPage::hideEvent(QHideEvent* event) {
SettingsPage::hideEvent(event);
UpdatePopupVisible();
}
void NotificationsSettingsPage::Load() {
QSettings s;