The "Recently Closed Tabs" action menu now has a limit of 10, before it could just go on for practically ever, which would yield an annoyingly huge list of closed tabs.

svn path=/trunk/KDE/kdebase/apps/; revision=937477
This commit is contained in:
Shaun Reich 2009-03-09 18:10:35 +00:00
parent 9d7103f6ef
commit abfa3fff9d

View file

@ -1348,6 +1348,11 @@ void DolphinMainWindow::rememberClosedTab(int index)
} else {
tabsMenu->insertAction(tabsMenu->actions().at(2), action);
}
//10 is the limit, remove the oldest one to make room. It's actually 8, since
//the separator and the "Empty Recently Closed Tabs" entry count as one
if (tabsMenu->actions().size() > 8) {
tabsMenu->removeAction(tabsMenu->actions().last());
}
actionCollection()->action("closed_tabs")->setEnabled(true);
}