[gnome-builder] buffer: refocus on reloading



commit e8001801a02f0f12bdc1da74a865719fc685d765
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Feb 21 11:02:22 2016 +0100

    buffer: refocus on reloading

 libide/editor/ide-editor-perspective.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective.c b/libide/editor/ide-editor-perspective.c
index b7937cc..a9e37ed 100644
--- a/libide/editor/ide-editor-perspective.c
+++ b/libide/editor/ide-editor-perspective.c
@@ -173,7 +173,10 @@ ide_editor_perspective_load_buffer (IdeEditorPerspective *self,
    * created, not when it's reloaded.
    */
   if (reloading)
-    return;
+    {
+      ide_buffer_manager_set_focus_buffer (buffer_manager, buffer);
+      return;
+    }
 
   IDE_TRACE_MSG ("Loading %s", ide_buffer_get_title (buffer));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]