lib_tree.cpp: Fix a lot of wxWidgets alerts on Windows.
On Windows calling m_adapter->RefreshTree() to refresh the tree does not work fine. Just calling Refresh() is enough.
This commit is contained in:
parent
aebfbda183
commit
c41199f048
|
@ -216,7 +216,14 @@ void LIB_TREE::Regenerate( bool aKeepState )
|
||||||
|
|
||||||
void LIB_TREE::RefreshLibTree()
|
void LIB_TREE::RefreshLibTree()
|
||||||
{
|
{
|
||||||
|
// m_adapter->RefreshTree() does not work fine on Windows.
|
||||||
|
// It creates a lot of wxWidgets alerts.
|
||||||
|
// calling Refresh of the wxPanel is enough
|
||||||
|
#ifdef _WINDOWS_
|
||||||
|
Refresh();
|
||||||
|
#else
|
||||||
m_adapter->RefreshTree();
|
m_adapter->RefreshTree();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue