setEnabled(false);
m_clearListAction = new QAction(i18n("Empty Recently Closed Tabs"), this);
- m_clearListAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-clear-list")));
+ m_clearListAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-clear-history")));
addAction(m_clearListAction);
addSeparator();
// action and the separator
QList<QAction*> actions = menu()->actions();
const int count = actions.size();
- for (int i = 2; i < count; ++i) {
+ for (int i = count - 1; i >= 2; i--) {
removeAction(actions.at(i));
}
Q_EMIT closedTabsCountChanged(0);