[glom] on_document_load(): Avoid false unexpected error warning.



commit 966b6ae51cf905656663efcc8f2cd2aa3a150c25
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Apr 23 18:58:30 2009 +0200

    on_document_load(): Avoid false unexpected error warning.
---
 ChangeLog           |    4 ++++
 glom/application.cc |    5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a3510d7..979944a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-23  Murray Cumming  <murrayc murrayc com>
+
+	* glom/application.cc: on_document_load(): Avoid false unexpected error warning. 
+
 2009-04-22  Michael Hasselmann  <michaelh openismus com>
 
 	Allow to disable navigation in the related record layout.
diff --git a/glom/application.cc b/glom/application.cc
index 058eba8..eb005b1 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -1087,9 +1087,10 @@ bool App_Glom::on_document_load()
             #endif // !GLOM_ENABLE_CLIENT_ONLY
               std::cerr << "App_Glom::on_document_load(): unexpected database_not_found error when opening example." << std::endl;
           }
-          else
+          else if(!test)
+          {
             std::cerr << "App_Glom::on_document_load(): unexpected error." << std::endl;
-
+          }
         }
 
         if(!test)



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