glom r1448 - in trunk: . glom



Author: murrayc
Date: Wed Mar  5 22:47:27 2008
New Revision: 1448
URL: http://svn.gnome.org/viewvc/glom?rev=1448&view=rev

Log:
2008-03-05  Murray Cumming  <murrayc murrayc com>

* glom/application.cc: offer_new_or_existing():
Call connection_pool->set_get_document_func() before calling 
connection_request_password_and_choose_new_database_name() to 
avoid a (maybe harmless anyway) warning.

Modified:
   trunk/ChangeLog
   trunk/glom/application.cc

Modified: trunk/glom/application.cc
==============================================================================
--- trunk/glom/application.cc	(original)
+++ trunk/glom/application.cc	Wed Mar  5 22:47:27 2008
@@ -1291,6 +1291,13 @@
           document->set_connection_database(db_name);
           document->set_connection_is_self_hosted(self_hosted);
                
+#ifndef GLOM_ENABLE_CLIENT_ONLY
+         //Tell the connection pool about the document:
+         ConnectionPool* connection_pool = ConnectionPool::get_instance();
+         if(connection_pool)
+           connection_pool->set_get_document_func( sigc::mem_fun(*this, &App_Glom::on_connection_pool_get_document) );
+#endif
+
           const bool connected = m_pFrame->connection_request_password_and_choose_new_database_name();
           if(!connected)
             return false;



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