Skip to content

Commit

Permalink
Fixed: SFTP crash when double clicking on a folder in the tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed May 20, 2019
1 parent 170747f commit e106b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CodeLiteIDE.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
<Project Name="LanguageServer" ConfigName="Win_x64_Release"/>
<Project Name="EOSWiki" ConfigName="Win_x64_Release"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Win_x64_Debug" Selected="yes">
<WorkspaceConfiguration Name="Win_x64_Debug" Selected="no">
<Environment/>
<Project Name="AutoSave" ConfigName="Win_x64_Debug"/>
<Project Name="CCTest" ConfigName="Debug"/>
Expand Down
4 changes: 2 additions & 2 deletions SFTP/SFTPTreeView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ void SFTPTreeView::OnItemActivated(wxTreeEvent& event)
if(cd->IsFolder()) {
wxTreeItemId item = event.GetItem();
if(m_treeCtrl->IsExpanded(item)) {
m_treeCtrl->CallAfter(&wxTreeCtrl::Collapse, item);
m_treeCtrl->CallAfter(&clThemedTreeCtrl::Collapse, item);
} else {
m_treeCtrl->CallAfter(&wxTreeCtrl::Expand, item);
m_treeCtrl->CallAfter(&clThemedTreeCtrl::Expand, item);
}

} else {
Expand Down

0 comments on commit e106b91

Please sign in to comment.