diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-01-26 02:16:51 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-01-26 02:16:51 +0100 |
commit | 95d2828aa413eea57ff658450c2f588087aee2a6 (patch) | |
tree | 97e260c12ad446dfc8ac781d480e641618fedc2a /src | |
parent | Restore usual position of web inspector on the bottom (diff) | |
download | rekonq-95d2828aa413eea57ff658450c2f588087aee2a6.tar.xz |
Fix kpart window half shown
BUG: 311887
Diffstat (limited to 'src')
-rw-r--r-- | src/webtab/webtab.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webtab/webtab.cpp b/src/webtab/webtab.cpp index fcdaaf7e..74fe720f 100644 --- a/src/webtab/webtab.cpp +++ b/src/webtab/webtab.cpp @@ -283,10 +283,10 @@ void WebTab::setPart(KParts::ReadOnlyPart *p, const KUrl &u) { // Ok, part exists. Insert & show it.. m_part = p; - qobject_cast<QVBoxLayout *>(layout())->insertWidget(1, p->widget()); + qobject_cast<QVBoxLayout *>(layout())->insertWidget(0, p->widget()); p->openUrl(u); view()->hide(); - + m_splitter->hide(); emit titleChanged(u.url()); return; } @@ -296,6 +296,7 @@ void WebTab::setPart(KParts::ReadOnlyPart *p, const KUrl &u) // Part NO more exists. Let's clean up from webtab view()->show(); + m_splitter->show(); qobject_cast<QVBoxLayout *>(layout())->removeWidget(m_part->widget()); delete m_part; m_part = 0; |