Commit faae6b24 authored by Sébastien Lafargue's avatar Sébastien Lafargue

document-panel: always selecting the active tab

When opening multiple files ( with command-line or with
mutli-selection in open files dialog ), the wrong row is selected.
parent d1ca5d0e
......@@ -690,7 +690,11 @@ multi_notebook_tab_added (GeditMultiNotebook *mnb,
insert_row (panel, GTK_LIST_BOX (panel->priv->listbox), row, position);
panel->priv->nb_row_tab += 1;
row_select (panel, GTK_LIST_BOX (panel->priv->listbox), GTK_LIST_BOX_ROW (row));
if (tab == gedit_multi_notebook_get_active_tab (mnb))
row_select (panel, GTK_LIST_BOX (panel->priv->listbox), GTK_LIST_BOX_ROW (row));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment