[glom] Don't allow deleting placeholder rows.
- From: Daniel Borgmann <dborg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Don't allow deleting placeholder rows.
- Date: Wed, 12 May 2010 10:05:04 +0000 (UTC)
commit 4461c2b33b59400b2f0b8dd220534a4c9cfee419
Author: Daniel Borgmann <danielb openismus com>
Date: Wed May 12 10:43:22 2010 +0100
Don't allow deleting placeholder rows.
* glom/utility_widgets/db_adddel/db_adddel.cc: Don't allow deleting a
placeholder row (which leads to broken behaviour).
ChangeLog | 7 +++++++
glom/utility_widgets/db_adddel/db_adddel.cc | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cced08d..ac834a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-12 Daniel Borgmann <danielb openismus com>
+
+ Don't allow deleting placeholder rows.
+
+ * glom/utility_widgets/db_adddel/db_adddel.cc: Don't allow deleting a
+ placeholder row (which leads to broken behaviour).
+
2010-05-11 Daniel Borgmann <danielb openismus com>
Don't add a new row when cancelling a placeholder edit.
diff --git a/glom/utility_widgets/db_adddel/db_adddel.cc b/glom/utility_widgets/db_adddel/db_adddel.cc
index 7971fa5..e662846 100644
--- a/glom/utility_widgets/db_adddel/db_adddel.cc
+++ b/glom/utility_widgets/db_adddel/db_adddel.cc
@@ -218,7 +218,7 @@ void DbAddDel::on_MenuPopup_activate_Delete()
if(refSelection)
{
Gtk::TreeModel::iterator iter = refSelection->get_selected();
- if(iter)
+ if(iter && !get_is_placeholder_row(iter))
{
//TODO: We can't handle multiple-selections yet.
user_requested_delete(iter, iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]