1
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:
nowrep 2011-07-28 21:59:56 +02:00
parent cf3a621346
commit 433eb1fc89
6 changed files with 475 additions and 447 deletions

Binary file not shown.

View File

@ -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()

View File

@ -411,6 +411,11 @@ void TabWidget::restoreAllClosedTabs()
m_closedTabsManager->clearList();
}
void TabWidget::clearClosedTabsList()
{
m_closedTabsManager->clearList();
}
bool TabWidget::canRestoreTab()
{
return m_closedTabsManager->isClosedTabAvailable();

View File

@ -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