[glom] Make the --debug_sql option work again.



commit 64a765ac985278243665fa75565c3cdc519f863f
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 1 11:18:12 2012 +0100

    Make the --debug_sql option work again.
    
    	* glom/appwindow.cc: set_show_sql_debug(): Set it in the ConnectionPool
    	too. This was broken since the change to Gtk::Application.

 ChangeLog         |    7 +++++++
 glom/appwindow.cc |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2616b74..09950e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-03-01  Murray Cumming  <murrayc murrayc com>
 
+	Make the --debug_sql option work again.
+
+	* glom/appwindow.cc: set_show_sql_debug(): Set it in the ConnectionPool
+	too. This was broken since the change to Gtk::Application.
+
+2012-03-01  Murray Cumming  <murrayc murrayc com>
+
 	ConnectionPool::change_columns(): Add/Remove autoincement rows here.
 
 	* glom/libglom/connectionpool.cc: change_columns(): Add or remove the
diff --git a/glom/appwindow.cc b/glom/appwindow.cc
index b11c95a..214fd14 100644
--- a/glom/appwindow.cc
+++ b/glom/appwindow.cc
@@ -208,6 +208,8 @@ bool AppWindow::get_show_sql_debug() const
 void AppWindow::set_show_sql_debug(bool val)
 {
   m_show_sql_debug = val;
+
+  ConnectionPool::get_instance()->set_show_debug_output(val);
 }
 
 void AppWindow::set_stop_auto_server_shutdown(bool val)



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