diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-01 16:21:05 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-01 16:21:05 +0100 |
commit | 99dfca4ba34f7b00bc64605772046bccd19e148d (patch) | |
tree | a846099d4626738f97fa115459a49ed0e013985f /src | |
parent | Let rekonq use just KIO network cache. This will force webkit (diff) | |
download | rekonq-99dfca4ba34f7b00bc64605772046bccd19e148d.tar.xz |
Fix crashes (and hopefully bug 212219)
Thanks to Thomas Gahr for the fix
Diffstat (limited to 'src')
-rw-r--r-- | src/tabbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 12745772..7326d7af 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -153,8 +153,8 @@ void TabBar::showTabPreview(int tab) WebTab *view = mv->webTab(tab); WebTab *currentView = mv->webTab(currentIndex()); - // should fix bug #212219 - if(!currentView) + // check if view && currentView exist before using them :) + if(!currentView || !view) return; int w = tabSizeHint(tab).width(); |