mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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:
parent
9d7103f6ef
commit
abfa3fff9d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue