Skip to content

Commit bdeb912

Browse files
minor cleanup
1 parent 4c74461 commit bdeb912

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/interface_derived.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ void MainFrameDerived::Filter(wxKeyEvent &event){
226226
projectsList->SetItemState(0, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
227227

228228
//open first item
229-
wxListEvent listEvent;
230-
listEvent.m_itemIndex = 0;
231-
OnOpenProject(listEvent);
229+
OpenProject(0);
232230
return;
233231
}
234232
}
@@ -552,7 +550,7 @@ void MainFrameDerived::AddProject(const project& p, const std::string& filter, b
552550
return;
553551
}
554552

555-
//add (painfully) to the UI
553+
//add to the UI
556554
auto name = p.name;
557555
transform(name.begin(), name.end(), name.begin(), ::tolower);
558556
if (name.find(filter) != std::string::npos){

0 commit comments

Comments
 (0)