mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Fixed "QStackedWidget::setCurrentWidget: widget not contained in stack"
warnings
This commit is contained in:
parent
13f8b67abd
commit
8c927529c0
@ -315,6 +315,7 @@ void TabWidget::currentTabChanged(int index)
|
|||||||
|
|
||||||
m_isClosingToLastTabIndex = false;
|
m_isClosingToLastTabIndex = false;
|
||||||
WebView* webView = weView();
|
WebView* webView = weView();
|
||||||
|
LocationBar* locBar = webView->webTab()->locationBar();
|
||||||
|
|
||||||
QString title = webView->title();
|
QString title = webView->title();
|
||||||
if (title.isEmpty())
|
if (title.isEmpty())
|
||||||
@ -323,7 +324,8 @@ void TabWidget::currentTabChanged(int index)
|
|||||||
p_QupZilla->setWindowTitle(title + " - QupZilla");
|
p_QupZilla->setWindowTitle(title + " - QupZilla");
|
||||||
// p_QupZilla->locationBar()->showUrl(weView()->url(),false);
|
// p_QupZilla->locationBar()->showUrl(weView()->url(),false);
|
||||||
|
|
||||||
m_locationBars->setCurrentWidget(webView->webTab()->locationBar());
|
if (m_locationBars->indexOf(locBar) != -1)
|
||||||
|
m_locationBars->setCurrentWidget(locBar);
|
||||||
p_QupZilla->ipLabel()->setText(webView->getIp());
|
p_QupZilla->ipLabel()->setText(webView->getIp());
|
||||||
|
|
||||||
if (webView->isLoading()) {
|
if (webView->isLoading()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user