diff --git a/src/plugins/VerticalTabs/tabtreeview.cpp b/src/plugins/VerticalTabs/tabtreeview.cpp --- a/src/plugins/VerticalTabs/tabtreeview.cpp +++ b/src/plugins/VerticalTabs/tabtreeview.cpp @@ -386,6 +386,20 @@ tab->closeTab(); } }); + m->addAction(tr("Unload Tree"), this, [=]() { + QVector tabs; + reverseTraverse(pindex, [&](const QModelIndex &index) { + WebTab *tab = index.data(TabModel::WebTabRole).value(); + if (tab) { + tabs.append(tab); + } + }); + for (WebTab *tab : qAsConst(tabs)) { + if (tab->isRestored()) { + tab->unload(); + } + } + }); } m->addSeparator();