X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e657520984aaa5445613f54b25f6ee24323e57c5..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/generic/tabg.cpp diff --git a/src/generic/tabg.cpp b/src/generic/tabg.cpp index 2ac60d8afd..24fb5c5f1c 100644 --- a/src/generic/tabg.cpp +++ b/src/generic/tabg.cpp @@ -699,6 +699,7 @@ void wxTabView::ClearTabs(bool deleteTabs) layerNode = nextLayerNode; } m_noTabs = 0; + m_tabSelection = -1; } @@ -1024,6 +1025,9 @@ void wxTabView::SetBackgroundColour(const wxColour& col) void wxTabView::SetTabSelection(int sel, bool activateTool) { + if ( sel==m_tabSelection ) + return; + int oldSel = m_tabSelection; wxTabControl *control = FindTabControlForId(sel); wxTabControl *oldControl = FindTabControlForId(m_tabSelection);