[glom] Box_Data_Portal::init_db(table_name): Remove useless show_title.



commit d1b8c0b5919713bd188e1984d40af018097b68b6
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 21 13:06:36 2016 +0100

    Box_Data_Portal::init_db(table_name): Remove useless show_title.

 glom/mode_data/box_data_calendar_related.cc |    2 +-
 glom/mode_data/box_data_calendar_related.h  |    2 +-
 glom/mode_data/box_data_list_related.cc     |    2 +-
 glom/mode_data/box_data_list_related.h      |    2 +-
 glom/mode_data/box_data_portal.cc           |    2 +-
 glom/mode_data/box_data_portal.h            |    2 +-
 glom/mode_data/flowtablewithfields.cc       |    4 ++--
 7 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glom/mode_data/box_data_calendar_related.cc b/glom/mode_data/box_data_calendar_related.cc
index 232a5c8..7766faa 100644
--- a/glom/mode_data/box_data_calendar_related.cc
+++ b/glom/mode_data/box_data_calendar_related.cc
@@ -78,7 +78,7 @@ bool Box_Data_Calendar_Related::init_db_details(const std::shared_ptr<const Layo
   return Box_Data_Portal::init_db_details(portal, show_title);
 }
 
-bool Box_Data_Calendar_Related::init_db_details(const Glib::ustring& parent_table, bool show_title)
+bool Box_Data_Calendar_Related::init_db_details(const Glib::ustring& parent_table)
 {
   //std::cout << "debug: " << G_STRFUNC << ": " << parent_table << std::endl;
 
diff --git a/glom/mode_data/box_data_calendar_related.h b/glom/mode_data/box_data_calendar_related.h
index c0b680c..75eb555 100644
--- a/glom/mode_data/box_data_calendar_related.h
+++ b/glom/mode_data/box_data_calendar_related.h
@@ -47,7 +47,7 @@ public:
 
   /** Use this if no portal is yet defined, so the user can use the context menu to define a portal.
    */
-  bool init_db_details(const Glib::ustring& parent_table, bool show_title = true) override;
+  bool init_db_details(const Glib::ustring& parent_table) override;
 
 private:
   bool fill_from_database() override;
diff --git a/glom/mode_data/box_data_list_related.cc b/glom/mode_data/box_data_list_related.cc
index bd9c56c..7e14deb 100644
--- a/glom/mode_data/box_data_list_related.cc
+++ b/glom/mode_data/box_data_list_related.cc
@@ -77,7 +77,7 @@ bool Box_Data_List_Related::init_db_details(const std::shared_ptr<const LayoutIt
   return Box_Data_Portal::init_db_details(portal, show_title);
 }
 
-bool Box_Data_List_Related::init_db_details(const Glib::ustring& parent_table, bool show_title)
+bool Box_Data_List_Related::init_db_details(const Glib::ustring& parent_table)
 {
   set_parent_table(parent_table);
 
diff --git a/glom/mode_data/box_data_list_related.h b/glom/mode_data/box_data_list_related.h
index a8a869e..212ac46 100644
--- a/glom/mode_data/box_data_list_related.h
+++ b/glom/mode_data/box_data_list_related.h
@@ -40,7 +40,7 @@ public:
 
   /** Use this if no portal is yet defined, so the user can use the context menu to define a portal.
    */
-  bool init_db_details(const Glib::ustring& parent_table, bool show_title = true) override;
+  bool init_db_details(const Glib::ustring& parent_table) override;
 
   void set_find_mode(bool val = true) override;
 
diff --git a/glom/mode_data/box_data_portal.cc b/glom/mode_data/box_data_portal.cc
index 72ccf68..d59244a 100644
--- a/glom/mode_data/box_data_portal.cc
+++ b/glom/mode_data/box_data_portal.cc
@@ -107,7 +107,7 @@ bool Box_Data_Portal::init_db_details(const std::shared_ptr<const LayoutItem_Por
   }
   show_title_in_ui(title);
 
-  return init_db_details(parent_table, show_title);
+  return init_db_details(parent_table);
 }
 
 Glib::ustring Box_Data_Portal::get_title(const Glib::ustring& locale) const
diff --git a/glom/mode_data/box_data_portal.h b/glom/mode_data/box_data_portal.h
index b08e678..ee03c07 100644
--- a/glom/mode_data/box_data_portal.h
+++ b/glom/mode_data/box_data_portal.h
@@ -50,7 +50,7 @@ public:
 
   /** Use this if no portal is yet defined, so the user can use the context menu to define a portal.
    */
-  virtual bool init_db_details(const Glib::ustring& parent_table, bool show_title = true) = 0;
+  virtual bool init_db_details(const Glib::ustring& parent_table) = 0;
 
   /** Update a portal if a relevant value in its parent table has changed.
    *
diff --git a/glom/mode_data/flowtablewithfields.cc b/glom/mode_data/flowtablewithfields.cc
index bd78c93..8b27a63 100644
--- a/glom/mode_data/flowtablewithfields.cc
+++ b/glom/mode_data/flowtablewithfields.cc
@@ -268,7 +268,7 @@ Box_Data_List_Related* FlowTableWithFields::create_related(const std::shared_ptr
     if(portal && portal->get_has_relationship_name())
       portal_box->init_db_details(portal, show_title);
     else
-      portal_box->init_db_details(m_table_name, show_title);
+      portal_box->init_db_details(m_table_name);
 
     Glib::ustring to_table;
     auto relationship = document->get_relationship(m_table_name, portal->get_relationship_name());
@@ -308,7 +308,7 @@ Box_Data_Calendar_Related* FlowTableWithFields::create_related_calendar(const st
     if(portal && portal->get_has_relationship_name())
       portal_box->init_db_details(portal, show_title);
     else
-      portal_box->init_db_details(m_table_name, show_title);
+      portal_box->init_db_details(m_table_name);
 
     Glib::ustring to_table;
     auto relationship = document->get_relationship(m_table_name, portal->get_relationship_name());


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