removed some more pointers

This commit is contained in:
fourtf 2020-08-13 20:10:52 +02:00
parent c83fc043e0
commit a566a74ef0
2 changed files with 1 additions and 4 deletions

View file

@ -36,7 +36,6 @@ QuickSwitcherPopup::QuickSwitcherPopup(QWidget *parent)
parent) parent)
, switcherModel_(this) , switcherModel_(this)
, switcherItemDelegate_(this) , switcherItemDelegate_(this)
, openPages_(openPages())
{ {
this->setWindowFlag(Qt::Dialog); this->setWindowFlag(Qt::Dialog);
this->setActionOnFocusLoss(BaseWindow::ActionOnFocusLoss::Delete); this->setActionOnFocusLoss(BaseWindow::ActionOnFocusLoss::Delete);
@ -95,7 +94,7 @@ void QuickSwitcherPopup::updateSuggestions(const QString &text)
this->switcherModel_.clear(); this->switcherModel_.clear();
// Add items for navigating to different splits // Add items for navigating to different splits
for (auto *sc : this->openPages_) for (auto *sc : openPages())
{ {
const QString &tabTitle = sc->getTab()->getTitle(); const QString &tabTitle = sc->getTab()->getTitle();
const auto splits = sc->getSplits(); const auto splits = sc->getSplits();

View file

@ -41,8 +41,6 @@ private:
QuickSwitcherModel switcherModel_; QuickSwitcherModel switcherModel_;
SwitcherItemDelegate switcherItemDelegate_; SwitcherItemDelegate switcherItemDelegate_;
QSet<SplitContainer *> openPages_;
void initWidgets(); void initWidgets();
}; };