mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Amend 8a5cbb8: fix variable-names and comments
This commit is contained in:
parent
8a5cbb8510
commit
f15297e24c
1 changed files with 5 additions and 4 deletions
|
|
@ -512,20 +512,21 @@ EditorRegions::redisplay ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//store sort column id and type for later
|
/* store sort column id and type for later */
|
||||||
int sort_col_id;
|
int sort_col_id;
|
||||||
Gtk::SortType sort_type;
|
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));
|
_display.set_model (Glib::RefPtr<Gtk::TreeStore> (0));
|
||||||
_model->clear ();
|
_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 ();
|
region_row_map.clear ();
|
||||||
|
|
||||||
RegionFactory::foreach_region (sigc::mem_fun (*this, &EditorRegions::add_region));
|
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);
|
_display.set_model (_model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue