summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/options.cpp')
-rw-r--r--plugins/NewStory/src/options.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp
index b57cb06d6d..3e8beaadfc 100644
--- a/plugins/NewStory/src/options.cpp
+++ b/plugins/NewStory/src/options.cpp
@@ -210,7 +210,7 @@ public:
MessageBox(m_hwnd, wszVarHelp, TranslateT("Variables help"), MB_OK);
}
- void onSelChanged(CCtrlTreeView::TEventInfo*)
+ void onSelChanged(CCtrlTreeView::TEventInfo *)
{
TVITEMEX tvi;
tvi.hItem = m_tree.GetSelection();
@@ -226,10 +226,8 @@ public:
bthVarHelp.Disable();
HTREEITEM hItem = m_tree.GetChild(tvi.hItem);
- if (hItem) {
+ if (hItem)
m_tree.Expand(tvi.hItem, TVE_EXPAND);
- m_tree.SelectItem(hItem);
- }
return;
}