Commit 421699ec authored by Sébastien Lafargue's avatar Sébastien Lafargue
Browse files

buffer manager: fix create view condition

When loading a file in the buffer manager,
we were creating a view even when ask to load in
the background.
parent 8ba87252
......@@ -712,7 +712,7 @@ ide_buffer_manager__load_file_query_info_cb (GObject *object,
if (state->is_new || (state->flags & IDE_WORKBENCH_OPEN_FLAGS_BACKGROUND) == 0)
if (state->is_new && (state->flags & IDE_WORKBENCH_OPEN_FLAGS_BACKGROUND) == 0)
create_new_view = TRUE;
g_signal_emit (self, signals [LOAD_BUFFER], 0, state->buffer, create_new_view);
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