From a566a74ef0ff3f9a20607ee873c4c7417235b732 Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 13 Aug 2020 20:10:52 +0200 Subject: [PATCH] removed some more pointers --- src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp | 3 +-- src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp b/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp index 6cc2039ff..2d8ffc95b 100644 --- a/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp +++ b/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp @@ -36,7 +36,6 @@ QuickSwitcherPopup::QuickSwitcherPopup(QWidget *parent) parent) , switcherModel_(this) , switcherItemDelegate_(this) - , openPages_(openPages()) { this->setWindowFlag(Qt::Dialog); this->setActionOnFocusLoss(BaseWindow::ActionOnFocusLoss::Delete); @@ -95,7 +94,7 @@ void QuickSwitcherPopup::updateSuggestions(const QString &text) this->switcherModel_.clear(); // Add items for navigating to different splits - for (auto *sc : this->openPages_) + for (auto *sc : openPages()) { const QString &tabTitle = sc->getTab()->getTitle(); const auto splits = sc->getSplits(); diff --git a/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp b/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp index 8bdd8058b..abedda864 100644 --- a/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp +++ b/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp @@ -41,8 +41,6 @@ private: QuickSwitcherModel switcherModel_; SwitcherItemDelegate switcherItemDelegate_; - QSet openPages_; - void initWidgets(); };