summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-09-20 16:18:47 +0200
committermegabigbug <megabigbug@arrakis.(none)>2009-09-20 16:18:47 +0200
commit3841557b91d7e1b168c741b5fdac08d5b0761234 (patch)
treeb72893744cdc7dd7dbbcfb593b1dbfa3a7ad248f /src/mainview.cpp
parentcreate function fix (diff)
downloadrekonq-3841557b91d7e1b168c741b5fdac08d5b0761234.tar.xz
small fix of tab preview behavior
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 87dbfaa1..6ef99b9b 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -621,8 +621,8 @@ void MainView::mouseMoveEvent(QMouseEvent *event)
m_currentTabPreview=tab;
}
- //if current tab then hide previous tab preview
- if (tab==m_tabBar->currentIndex())
+ //if current tab or not found then hide previous tab preview
+ if (tab==m_tabBar->currentIndex() || tab==-1)
{
if ( m_previewPopup)
{
@@ -669,7 +669,6 @@ void MainView::showTabPreview(int tab)
}
m_previewPopup = new KPassivePopup(this);
- m_previewPopup->setAutoDelete(true);
m_previewPopup->setFrameShape(QFrame::NoFrame);
m_previewPopup->setFixedSize(w, h);
QLabel *l = new QLabel();