RestoreSession: Show tab url in tooltip

remotes/origin/falkon
David Rosca 9 years ago
parent 6514aed3a7
commit 4fd8aa76d1
  1. 5
      src/lib/data/html/restore.html
  2. 1
      src/lib/session/recoveryjsobject.cpp

@ -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);
}
}
}

@ -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);
}

Loading…
Cancel
Save