mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Clear list of closed tabs + translate update
This commit is contained in:
parent
cf3a621346
commit
433eb1fc89
Binary file not shown.
@ -721,8 +721,10 @@ void QupZilla::aboutToShowClosedTabsMenu()
|
||||
m_menuClosedTabs->addSeparator();
|
||||
if (i == 0)
|
||||
m_menuClosedTabs->addAction(tr("Empty"))->setEnabled(false);
|
||||
else
|
||||
else {
|
||||
m_menuClosedTabs->addAction(tr("Restore All Closed Tabs"), m_tabWidget, SLOT(restoreAllClosedTabs()));
|
||||
m_menuClosedTabs->addAction(tr("Clear list"), m_tabWidget, SLOT(clearClosedTabsList()));
|
||||
}
|
||||
}
|
||||
|
||||
void QupZilla::aboutToShowHelpMenu()
|
||||
|
@ -411,6 +411,11 @@ void TabWidget::restoreAllClosedTabs()
|
||||
m_closedTabsManager->clearList();
|
||||
}
|
||||
|
||||
void TabWidget::clearClosedTabsList()
|
||||
{
|
||||
m_closedTabsManager->clearList();
|
||||
}
|
||||
|
||||
bool TabWidget::canRestoreTab()
|
||||
{
|
||||
return m_closedTabsManager->isClosedTabAvailable();
|
||||
|
@ -70,6 +70,7 @@ public slots:
|
||||
void closeAllButCurrent(int index);
|
||||
void restoreClosedTab();
|
||||
void restoreAllClosedTabs();
|
||||
void clearClosedTabsList();
|
||||
|
||||
private slots:
|
||||
void aboutToShowTabsMenu();
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user