diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-29 12:11:50 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-29 12:11:50 +0100 |
commit | a8ac2b8e22ca41e7617bdc8099d81bba6291a649 (patch) | |
tree | 24c53810c86c31b3b10f7e960d359142c1bc32f4 /src | |
parent | Merge commit 'refs/merge-requests/1947' of git://gitorious.org/rekonq/mainlin... (diff) | |
download | rekonq-a8ac2b8e22ca41e7617bdc8099d81bba6291a649.tar.xz |
Fixing tabbar crash on close
BUG: 212219
Diffstat (limited to 'src')
-rw-r--r-- | src/tabbar.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index b92c938a..7e83f69d 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -144,6 +144,10 @@ void TabBar::showTabPreview(int tab) WebView *view = m_parent->webView(tab); WebView *currentView = m_parent->webView(currentIndex()); + // should fix bug #212219 + if(!currentView) + return; + int w = tabSizeHint(tab).width(); int h = w*((0.0 + currentView->height())/currentView->width()); |