fix: Fix missing setup url for new opeed tab

Closes: #4107
This commit is contained in:
B.Melnik 2021-11-15 15:36:22 +03:00 committed by Boris Melnik
parent 44e91df428
commit 663fea0272
1 changed files with 5 additions and 3 deletions

View File

@ -100,8 +100,8 @@ Rectangle {
}
function openUrlInNewTab(url) {
browserWindow.addNewTab()
determineRealURL(url)
var tab = browserWindow.addNewTab()
tab.item.url = determineRealURL(url)
}
function addNewDownloadTab() {
@ -110,10 +110,12 @@ Rectangle {
}
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;
browserHeader.addressBar.forceActiveFocus();
browserHeader.addressBar.selectAll();
return tab;
}
function onDownloadRequested(download) {