[glom] Application: Do not load documents twice.



commit dca7d758a6e66031a90bef6be9c2e006dc92ca33
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Feb 13 10:38:39 2012 +0100

    Application: Do not load documents twice.
    
    	* glom/application.cc: on_open(): Correct the call to the
    	base class method, to avoid a second attempt to open the same
    	document.

 ChangeLog           |    8 ++++++++
 glom/application.cc |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 83ec2d8..462d731 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-02-13  Murray Cumming  <murrayc murrayc com>
+
+	Application: Do not load documents twice.
+
+	* glom/application.cc: on_open(): Correct the call to the 
+	base class method, to avoid a second attempt to open the same
+	document.
+
 2012-02-10  Murray Cumming  <murrayc murrayc com>
 
 	Remove use of Gtk::Main functions.
diff --git a/glom/application.cc b/glom/application.cc
index 30b2413..5000dc5 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -108,7 +108,7 @@ void Application::on_open(const Gio::Application::type_vec_files& files,
       create_window(file);
   }
 
-  Application::on_open(files, hint);
+  Gtk::Application::on_open(files, hint);
 }
 
 



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