[glom] Add newly created documents to the recently used files
- From: Armin Burgmeier <arminb src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom] Add newly created documents to the recently used files
- Date: Fri, 26 Jun 2009 14:13:30 +0000 (UTC)
commit 52cb93baf929a99bd554844118d556190ac8a064
Author: Armin Burgmeier <armin arbur net>
Date: Fri Jun 26 16:09:14 2009 +0200
Add newly created documents to the recently used files
* glom/application.cc (existing_or_new_new): When the new database
could be created successfully, then add the document to the recent
files list.
ChangeLog | 8 +++++++-
glom/application.cc | 3 +++
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 586879d..8f745f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2009-05-26 Armin Burgmeier <armin openismus com>
+2009-06-26 Armin Burgmeier <armin openismus com>
+
+ * glom/application.cc (existing_or_new_new): When the new database
+ could be created successfully, then add the document to the recent
+ files list.
+
+2009-06-26 Armin Burgmeier <armin openismus com>
* glom/frame_glom.cc
(connection_request_password_and_choose_new_database_name): Remember
diff --git a/glom/application.cc b/glom/application.cc
index a418280..3cd2f56 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -1418,6 +1418,9 @@ void App_Glom::existing_or_new_new()
ConnectionPool::get_instance()->set_database(database_name_used);
document->set_database_title(db_title);
m_pFrame->set_databases_selected(database_name_used);
+
+ // Add the document to recent files
+ document_history_add(document->get_file_uri());
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]