aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-24 22:49:48 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-24 22:49:48 +0800
commitc16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be (patch)
tree465cc52b2978ff493a2d5a2b41910838706862eb
parentbc36afd042c949d85f3e8aaa12566950aa57ebe8 (diff)
downloadgsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar
gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.gz
gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.bz2
gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.lz
gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.xz
gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.zst
gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.zip
Convert erroneous g_return_if_fail into a simple conditional return.
2003-08-24 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_remove): Convert erroneous g_return_if_fail into a simple conditional return.
-rw-r--r--ChangeLog6
-rw-r--r--lib/widgets/ephy-node-view.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 46a582f40..fac8c8442 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-24 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/widgets/ephy-node-view.c: (ephy_node_view_remove):
+
+ Convert erroneous g_return_if_fail into a simple conditional return.
+
2003-08-23 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyWrapper.cpp: (SetZoomOnDocshell):
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 5bd528fcc..8b1f09e0c 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -1370,7 +1370,8 @@ ephy_node_view_remove (EphyNodeView *view)
*/
list = ephy_node_view_get_selection (view);
- g_return_if_fail (list != NULL);
+ if (list == NULL) return;
+
node = g_list_first (list)->data;
ephy_tree_model_node_iter_from_node (EPHY_TREE_MODEL_NODE (view->priv->nodemodel),
node, &iter);