commit 7a1f2c91b8198c8e3eb2b30057a44b8cf44738c6
parent dc627e018047feb125956b1284195ac652710fde
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 12 Aug 2018 17:34:23 -0400
fix possible crash when inserting a tab after clearing the tabbar
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
@@ -80,6 +80,7 @@ int TabBar::count() const
void TabBar::clear()
{
m_pages.clear();
+ m_lastPage = -1;
#ifdef TabCtrl_DeleteAllItems
TabCtrl_DeleteAllItems(handle());