[dia] Bug 609667 - Missing update of recent documents list
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Bug 609667 - Missing update of recent documents list
- Date: Fri, 20 Aug 2010 16:09:04 +0000 (UTC)
commit 5b080f0daff381f614fdd683a53fabeb4e9852e6
Author: Hans Breuer <hans breuer org>
Date: Fri Aug 20 17:58:20 2010 +0200
Bug 609667 - Missing update of recent documents list
Original patch by Chris McIntosh, slightly modified by me.
app/display.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/display.c b/app/display.c
index 806fa6b..c9e27e5 100644
--- a/app/display.c
+++ b/app/display.c
@@ -46,6 +46,7 @@
#include "dia-props.h"
#include "render_gdk.h"
#include "diatransform.h"
+#include "recent_files.h"
static GHashTable *display_ht = NULL;
static GdkCursor *current_cursor = NULL;
@@ -1220,7 +1221,9 @@ are_you_sure_close_dialog_respond(GtkWidget *widget, /* the dialog */
/* save changes */
if (!diagram_save(ddisp->diagram, ddisp->diagram->filename))
close_ddisp = FALSE;
-
+ else
+ recent_file_history_add(ddisp->diagram->filename);
+
if (ddisp->update_id && close_ddisp) {
g_source_remove (ddisp->update_id);
ddisp->update_id = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]