parent
44e91df428
commit
663fea0272
|
@ -100,8 +100,8 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openUrlInNewTab(url) {
|
function openUrlInNewTab(url) {
|
||||||
browserWindow.addNewTab()
|
var tab = browserWindow.addNewTab()
|
||||||
determineRealURL(url)
|
tab.item.url = determineRealURL(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
function addNewDownloadTab() {
|
function addNewDownloadTab() {
|
||||||
|
@ -110,10 +110,12 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addNewTab() {
|
function addNewTab() {
|
||||||
tabs.createEmptyTab(tabs.count !== 0 ? currentWebView.profile : defaultProfile);
|
var tab = tabs.createEmptyTab(tabs.count !== 0 ? currentWebView.profile : defaultProfile);
|
||||||
tabs.currentIndex = tabs.count - 1;
|
tabs.currentIndex = tabs.count - 1;
|
||||||
browserHeader.addressBar.forceActiveFocus();
|
browserHeader.addressBar.forceActiveFocus();
|
||||||
browserHeader.addressBar.selectAll();
|
browserHeader.addressBar.selectAll();
|
||||||
|
|
||||||
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDownloadRequested(download) {
|
function onDownloadRequested(download) {
|
||||||
|
|
Loading…
Reference in New Issue