[gnome-builder] workbench: don't include temporary files in "save all"



commit b825dd7f5a70f8a12f8ff44d53a99dd4b3e0f1b1
Author: Christian Hergert <christian hergert me>
Date:   Mon Mar 23 02:58:23 2015 -0700

    workbench: don't include temporary files in "save all"

 src/workbench/gb-workbench-actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/workbench/gb-workbench-actions.c b/src/workbench/gb-workbench-actions.c
index f74db96..fb0bf1f 100644
--- a/src/workbench/gb-workbench-actions.c
+++ b/src/workbench/gb-workbench-actions.c
@@ -207,7 +207,7 @@ gb_workbench_actions_save_all (GSimpleAction *action,
       buffer = g_ptr_array_index (ar, i);
       file = ide_buffer_get_file (buffer);
 
-      if (file == NULL)
+      if ((file == NULL) || ide_file_get_is_temporary (file))
         continue;
 
       ide_buffer_manager_save_file_async (buffer_manager, buffer, file, NULL, NULL, NULL, NULL);


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