mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix regression after 2a6896e57f
This commit is contained in:
parent
2a6896e57f
commit
8f9f187b80
@ -155,19 +155,17 @@ void HistoryMenu::aboutToShowClosedTabs()
|
|||||||
if (!m_window) {
|
if (!m_window) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
TabWidget* tabWidget = m_window->tabWidget();
|
||||||
QAction* arestore = new QAction(tr("Restore All Closed Tabs"), this);
|
QAction* arestore = new QAction(tr("Restore All Closed Tabs"), this);
|
||||||
QAction* aclrlist = new QAction(tr("Clear list"), this);
|
QAction* aclrlist = new QAction(tr("Clear list"), this);
|
||||||
|
|
||||||
connect(arestore, SIGNAL(triggered()), this, SLOT(restoreAllClosedTabs()));
|
connect(arestore, SIGNAL(triggered()), tabWidget, SLOT(restoreAllClosedTabs()));
|
||||||
connect(aclrlist, SIGNAL(triggered()), this, SLOT(clearClosedTabsList()));
|
connect(aclrlist, SIGNAL(triggered()), tabWidget, SLOT(clearClosedTabsList()));
|
||||||
|
|
||||||
m_menuClosedTabs->addAction(arestore);
|
m_menuClosedTabs->addAction(arestore);
|
||||||
m_menuClosedTabs->addAction(aclrlist);
|
m_menuClosedTabs->addAction(aclrlist);
|
||||||
|
|
||||||
m_menuClosedTabs->addSeparator();
|
m_menuClosedTabs->addSeparator();
|
||||||
|
|
||||||
TabWidget* tabWidget = m_window->tabWidget();
|
|
||||||
const QLinkedList<ClosedTabsManager::Tab> closedTabs = tabWidget->closedTabsManager()->allClosedTabs();
|
const QLinkedList<ClosedTabsManager::Tab> closedTabs = tabWidget->closedTabsManager()->allClosedTabs();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user