summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-17 18:27:40 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-17 18:27:40 +0200
commit8ef95ed5f65c07020a91b9fce306eacc0309794a (patch)
tree1292b44906fddb23d368335daf32eed615a7ca70 /src/tabbar.cpp
parentBased on Lionel's merge request #80: (diff)
downloadrekonq-8ef95ed5f65c07020a91b9fce306eacc0309794a.tar.xz
Clean tab previews, not showing on loading
removed a duplicated method and save one QPixmap in WebSnap class
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 518b1a96..f8da57b1 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -164,13 +164,16 @@ void TabBar::showTabPreview(int tab)
delete m_previewPopup.data();
m_previewPopup.clear();
+ if (indexedTab->progress() != 0)
+ return;
+
m_previewPopup = new KPassivePopup(this);
m_previewPopup.data()->setFrameShape(QFrame::StyledPanel);
m_previewPopup.data()->setFrameShadow(QFrame::Plain);
m_previewPopup.data()->setFixedSize(w, h);
QLabel *l = new QLabel();
- l->setPixmap( WebSnap::renderPreview( *indexedTab->page(), w, h, false) );
+ l->setPixmap( WebSnap::renderPreview( *indexedTab->page(), w, h, true) );
m_previewPopup.data()->setView(l);
m_previewPopup.data()->layout()->setAlignment(Qt::AlignTop);