Skip to content
Browse files

fix a segfault, which occured in closing a tab

  • Loading branch information...
1 parent d8aeb29 commit 3939bcdcd5262d968e608580dbc870cb81224d58 @gzsombor committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/tabwidget.cpp
View
3 src/tabwidget.cpp
@@ -1166,7 +1166,8 @@ void TabWidget::rotateThumb(int numSteps, int index, int x)
void TabWidget::clearThumb(int index)
{
WebView *currentTab = webView(currentIndex());
- currentTab->clearThumb();
+ if (currentTab)
+ currentTab->clearThumb();
if (WebView *tab = webView(index))
tab->resetQuickHistory();
}

0 comments on commit 3939bcd

Please sign in to comment.
Something went wrong with that request. Please try again.