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(); };