minor change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -576,8 +576,14 @@ void RegTreeCtrl::OnItemExpanding(wxTreeEvent& event)
|
|||||||
bool RegTreeCtrl::TreeNode::OnExpand()
|
bool RegTreeCtrl::TreeNode::OnExpand()
|
||||||
{
|
{
|
||||||
// remove dummy item
|
// remove dummy item
|
||||||
if ( m_lDummy != 0 )
|
if ( m_lDummy != 0 ) {
|
||||||
m_pTree->DeleteItem(m_lDummy);
|
m_pTree->DeleteItem(m_lDummy);
|
||||||
|
m_lDummy = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// we've been already expanded
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
if ( IsRoot() ) {
|
if ( IsRoot() ) {
|
||||||
// we're the root key
|
// we're the root key
|
||||||
@@ -595,7 +601,6 @@ bool RegTreeCtrl::TreeNode::OnExpand()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !m_pKey->Open() ) {
|
if ( !m_pKey->Open() ) {
|
||||||
m_lDummy = 0;
|
|
||||||
wxLogError("The key '%s' can't be opened.", FullName());
|
wxLogError("The key '%s' can't be opened.", FullName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user