[gnome-builder/gnome-builder-3-26] buffer manager: fix create view condition
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-26] buffer manager: fix create view condition
- Date: Tue, 19 Sep 2017 15:52:42 +0000 (UTC)
commit 932e9a456e7a7ea0f85167e8187af0fdc04ce52e
Author: Sebastien Lafargue <slafargue gnome org>
Date: Tue Sep 19 16:18:21 2017 +0200
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.
libide/buffers/ide-buffer-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/buffers/ide-buffer-manager.c b/libide/buffers/ide-buffer-manager.c
index 4cd9b09..5302365 100644
--- a/libide/buffers/ide-buffer-manager.c
+++ b/libide/buffers/ide-buffer-manager.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]