projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
72cb6ff
)
minor change
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 17 Aug 1998 22:22:29 +0000
(22:22 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 17 Aug 1998 22:22:29 +0000
(22:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@582
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
samples/regtest/regtest.cpp
patch
|
blob
|
blame
|
history
diff --git
a/samples/regtest/regtest.cpp
b/samples/regtest/regtest.cpp
index b04dd8748c2f5d7c1826797109fb34ed70ef7fd5..5873fc4441baa149fb620d440b213b8be20de2a6 100644
(file)
--- a/
samples/regtest/regtest.cpp
+++ b/
samples/regtest/regtest.cpp
@@
-576,8
+576,14
@@
void RegTreeCtrl::OnItemExpanding(wxTreeEvent& event)
bool RegTreeCtrl::TreeNode::OnExpand()
{
// remove dummy item
- if ( m_lDummy != 0 )
+ if ( m_lDummy != 0 )
{
m_pTree->DeleteItem(m_lDummy);
+ m_lDummy = 0;
+ }
+ else {
+ // we've been already expanded
+ return TRUE;
+ }
if ( IsRoot() ) {
// we're the root key
@@
-595,7
+601,6
@@
bool RegTreeCtrl::TreeNode::OnExpand()
}
if ( !m_pKey->Open() ) {
- m_lDummy = 0;
wxLogError("The key '%s' can't be opened.", FullName());
return false;
}