summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-01-26 02:16:51 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-01-26 02:16:51 +0100
commit95d2828aa413eea57ff658450c2f588087aee2a6 (patch)
tree97e260c12ad446dfc8ac781d480e641618fedc2a
parentRestore usual position of web inspector on the bottom (diff)
downloadrekonq-95d2828aa413eea57ff658450c2f588087aee2a6.tar.xz
Fix kpart window half shown
BUG: 311887
-rw-r--r--src/webtab/webtab.cpp5
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;