glom r1964 - in trunk: . glom/libglom/document



Author: murrayc
Date: Fri Mar  6 14:03:55 2009
New Revision: 1964
URL: http://svn.gnome.org/viewvc/glom?rev=1964&view=rev

Log:
2009-03-06  Murray Cumming  <murrayc murrayc com>

* glom/libglom/document/document_glom.cc: load_after(): Added an ifdef to 
    fix the client-only sqlite build.


Modified:
   trunk/ChangeLog
   trunk/glom/libglom/document/document_glom.cc

Modified: trunk/glom/libglom/document/document_glom.cc
==============================================================================
--- trunk/glom/libglom/document/document_glom.cc	(original)
+++ trunk/glom/libglom/document/document_glom.cc	Fri Mar  6 14:03:55 2009
@@ -2379,11 +2379,13 @@
         }
 
 #ifdef GLOM_ENABLE_CLIENT_ONLY
-        if(mode == HOSTING_MODE_POSTGRES_SELF)
+#ifdef GLOM_ENABLE_POSTGRESQL
+        if(mode == HOSTING_MODE_POSTGRES_SELF) //TODO: Define these enums always and show a dialog saying that the feature is not enabled.
         {
           std::cerr << "Document_Glom::load_after(): Loading failed because the document needs to be self-hosted, but self-hosting is not supported in client only mode" << std::endl;
           return false; //TODO: Provide more information so the application (or Bakery) can say exactly why loading failed.
         }
+#endif //GLOM_ENABLE_POSTGRESQL
 #endif
         m_hosting_mode = mode;
       }



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