[glom] Allow use of example documents that mention an unsupported backend.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom] Allow use of example documents that mention an unsupported backend.
- Date: Thu, 3 Dec 2009 08:38:27 +0000 (UTC)
commit 255ada87d0329ffae3ffc39db50e4aa9984377f7
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Dec 3 09:38:18 2009 +0100
Allow use of example documents that mention an unsupported backend.
* glom/application.cc: check_document_hosting_mode_is_supported():
Don't check the backend if it is an example document because the user
will choose it when saving anyway.
ChangeLog | 8 ++++++++
glom/application.cc | 5 +++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 44fa10d..5686b77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-12-03 Murray Cumming <murrayc murrayc com>
+
+ Allow use of example documents that mention an unsupported backend.
+
+ * glom/application.cc: check_document_hosting_mode_is_supported():
+ Don't check the backend if it is an example document because the user
+ will choose it when saving anyway.
+
2009-11-17 Murray Cumming <murrayc murrayc com>
tests: dtd: Now passes.
diff --git a/glom/application.cc b/glom/application.cc
index 69f402a..d935334 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -892,6 +892,11 @@ void App_Glom::init_create_document()
bool App_Glom::check_document_hosting_mode_is_supported(Document* document)
{
+ //If it's an example then the document's hosting mode doesn't matter,
+ //because the user will be asked to choose one when saving anyway.
+ if(document->get_is_example_file())
+ return true;
+
//Check that the file's hosting mode is supported by this build:
Glib::ustring error_message;
switch(document->get_hosting_mode())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]