Amend 8a5cbb8
: fix variable-names and comments
This commit is contained in:
parent
8a5cbb8510
commit
f15297e24c
@ -512,20 +512,21 @@ EditorRegions::redisplay ()
|
||||
return;
|
||||
}
|
||||
|
||||
//store sort column id and type for later
|
||||
/* store sort column id and type for later */
|
||||
int sort_col_id;
|
||||
Gtk::SortType sort_type;
|
||||
_model->get_sort_column_id(sort_id, type);
|
||||
_model->get_sort_column_id (sort_col_id, sort_type);
|
||||
|
||||
_display.set_model (Glib::RefPtr<Gtk::TreeStore> (0));
|
||||
_model->clear ();
|
||||
_model->set_sort_column (-2, SORT_ASCENDING); //Disable sorting to gain performance
|
||||
/* Disable sorting to gain performance */
|
||||
_model->set_sort_column (-2, SORT_ASCENDING);
|
||||
|
||||
region_row_map.clear ();
|
||||
|
||||
RegionFactory::foreach_region (sigc::mem_fun (*this, &EditorRegions::add_region));
|
||||
|
||||
_model->set_sort_column (sort_col_id, sort_type); // renabale sorting
|
||||
_model->set_sort_column (sort_col_id, sort_type); // re-enabale sorting
|
||||
_display.set_model (_model);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user