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,14 @@ tab->closeTab(); } }); + m->addAction(tr("Unload Tree"), this, [=]() { + reverseTraverse(pindex, [&](const QModelIndex &index) { + WebTab *tab = index.data(TabModel::WebTabRole).value(); + if (tab && tab->isRestored()) { + tab->unload(); + } + }); + }); } m->addSeparator();