diff --git a/src/lib/data/html/restore.html b/src/lib/data/html/restore.html index e3677eb69..b31afce3c 100644 --- a/src/lib/data/html/restore.html +++ b/src/lib/data/html/restore.html @@ -233,10 +233,11 @@ function addWindow(winId) document.getElementById("recovery-items").appendChild(tr); } -function addTab(winId, tabId, icon, title) +function addTab(winId, tabId, icon, url, title) { var tr = document.createElement("tr"); tr.className = "tab"; + tr.title = url; tr.onclick = function() { selectRow(tr); }; var td = document.createElement("td"); var input = document.createElement("input"); @@ -266,7 +267,7 @@ function init() addWindow(win.window); for (var j = 0; j < win.tabs.length; ++j) { var tab = win.tabs[j]; - addTab(win.window, tab.tab, tab.icon, tab.title); + addTab(win.window, tab.tab, tab.icon, tab.url, tab.title); } } } diff --git a/src/lib/session/recoveryjsobject.cpp b/src/lib/session/recoveryjsobject.cpp index 53808c776..db2884efc 100644 --- a/src/lib/session/recoveryjsobject.cpp +++ b/src/lib/session/recoveryjsobject.cpp @@ -52,6 +52,7 @@ QJsonArray RecoveryJsObject::restoreData() const tab[QSL("tab")] = j++; tab[QSL("icon")] = QzTools::pixmapToDataUrl(t.icon.pixmap(16)).toString(); tab[QSL("title")] = t.title; + tab[QSL("url")] = t.url.toString(); tabs.append(tab); }