1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Fix restoring correct tabs from restore page

Closes #2104
This commit is contained in:
David Rosca 2016-12-27 19:45:51 +01:00
parent 4fd8aa76d1
commit d39e4cc381
2 changed files with 4 additions and 2 deletions

View File

@ -205,8 +205,8 @@ function restoreSession()
if (input.checked || input.indeterminate || !input.hasAttribute("data-tab")) {
return;
}
excludeWin.push(input.getAttribute("data-window"));
excludeTab.push(input.getAttribute("data-tab"));
excludeWin.unshift(input.getAttribute("data-window"));
excludeTab.unshift(input.getAttribute("data-tab"));
});
external.recovery.restoreSession(excludeWin, excludeTab);

View File

@ -80,6 +80,8 @@ void RecoveryJsObject::restoreSession(const QStringList &excludeWin, const QStri
{
Q_ASSERT(excludeWin.size() == excludeTab.size());
// This assumes that excludeWin and excludeTab are sorted in descending order
RestoreData data = m_manager->restoreData();
for (int i = 0; i < excludeWin.size(); ++i) {