[glom/glom-1-18] Related records portals: Allow navigation via read-only relationships.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-18] Related records portals: Allow navigation via read-only relationships.
- Date: Sat, 15 Oct 2011 19:48:28 +0000 (UTC)
commit bd2aa54c07a6f9d462f199a1eacdcbaff0a0ba33
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Sep 9 14:36:46 2011 +0200
Related records portals: Allow navigation via read-only relationships.
* glom/mode_data/box_data_list_related.cc: on_adddel_user_requested_edit():
Remove the check for a non-editable relationship, because that is about
editing, but this is about opening, and we already have the navigation=None
option.
Conflicts:
ChangeLog
glom/mode_data/box_data_list_related.cc
ChangeLog | 9 +++++++++
glom/mode_data/box_data_list_related.cc | 8 +-------
2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b4d59c1..9130d18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-10-15 Murray Cumming <murrayc murrayc com>
+
+ Related records portals: Allow navigation via read-only relationships.
+
+ * glom/mode_data/box_data_list_related.cc: on_adddel_user_requested_edit():
+ Remove the check for a non-editable relationship, because that is about
+ editing, but this is about opening, and we already have the navigation=None
+ option.
+
2011-10-13 Murray Cumming <murrayc murrayc com>
Deleting tables: Remove all auto-increment rows.
diff --git a/glom/mode_data/box_data_list_related.cc b/glom/mode_data/box_data_list_related.cc
index d448be1..c94a9de 100644
--- a/glom/mode_data/box_data_list_related.cc
+++ b/glom/mode_data/box_data_list_related.cc
@@ -171,14 +171,8 @@ Gnome::Gda::Value Box_Data_List_Related::get_primary_key_value(const Gtk::TreeMo
void Box_Data_List_Related::on_adddel_user_requested_edit(const Gtk::TreeModel::iterator& row)
{
- if(!(m_portal->get_relationship_used_allows_edit()))
- {
- std::cerr << "Box_Data_List_Related::on_adddel_user_requested_eidt() called on non-editable portal. This should not happen." << std::endl;
- return;
- }
+ //Note that this is really an Open rather than an Edit.
- //Call base class:
-
const Gnome::Gda::Value primary_key_value = m_AddDel.get_value_key(row); //The primary key is in the key.
//std::cout << "on_adddel_user_requested_edit(): Requesting edit for primary_key=" << primary_key_value.to_string() << std::endl;
signal_user_requested_details().emit(primary_key_value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]