Object List: Reselect last selected object after composing.

This commit is contained in:
Kolan Sh 2016-04-08 05:20:42 +03:00
parent fbe3ef30aa
commit b7f6b9c626
1 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,14 @@ namespace LAview.Desktop {
if (t_indices.length != 0 && o_indices.length != 0) {
AppCore.core.compose_object (window, t_indices[0], o_indices[0]);
fill_objects_list ();
TreeIter iter;
if (treeview_objects.model.get_iter_first(out iter)) {
for (var i = 0; i < o_indices[0]; ++i)
treeview_objects.model.iter_next (ref iter);
treeview_objects.get_selection ().select_iter (iter);
}
statusbar_show (_("After composing all objects print the document."));
} else {
statusbar_show (_("Select an object first."));