[gnac/devel] Fixed a bug in gnac-properties
- From: BenoÃt Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Fixed a bug in gnac-properties
- Date: Thu, 26 Jan 2012 00:26:16 +0000 (UTC)
commit 74fd92ca8449f0d0aa78f5d1facea3bf082c43c4
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date: Thu Jan 26 00:04:31 2012 +0000
Fixed a bug in gnac-properties
src/gnac-properties.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnac-properties.c b/src/gnac-properties.c
index 77463ac..f15a10f 100644
--- a/src/gnac-properties.c
+++ b/src/gnac-properties.c
@@ -615,6 +615,8 @@ void
gnac_properties_on_back(GtkWidget *widget,
gpointer data)
{
+ if (!gtk_tree_row_reference_valid(current_ref)) return;
+
GtkTreeRowReference *old_ref = gtk_tree_row_reference_copy(current_ref);
if (gnac_file_list_get_prev_row(¤t_ref)) {
@@ -634,6 +636,8 @@ void
gnac_properties_on_forward(GtkWidget *widget,
gpointer data)
{
+ if (!gtk_tree_row_reference_valid(current_ref)) return;
+
GtkTreeRowReference *old_ref = gtk_tree_row_reference_copy(current_ref);
if (gnac_file_list_get_next_row(¤t_ref)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]