diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-08-22 19:07:10 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2008-08-22 19:07:10 +0000 |
commit | 78764ef397aed274392353981e4763eab2e78152 (patch) | |
tree | c78ae5733d7ae601877a81e305106d87b1349dd0 /gui | |
parent | 665e2f2360772d6bb7e7ada0e5b972cd153afcf6 (diff) | |
download | gdm-78764ef397aed274392353981e4763eab2e78152.tar.gz |
Check that we have a selected path before using it. Fixes #549040
2008-08-22 William Jon McCann <jmccann@redhat.com>
* gui/simple-greeter/gdm-chooser-widget.c
(gdm_chooser_widget_activate_selected_item):
Check that we have a selected path before
using it. Fixes #549040
svn path=/trunk/; revision=6416
Diffstat (limited to 'gui')
-rw-r--r-- | gui/simple-greeter/gdm-chooser-widget.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c index ea6a0a9c..af76d48d 100644 --- a/gui/simple-greeter/gdm-chooser-widget.c +++ b/gui/simple-greeter/gdm-chooser-widget.c @@ -2,6 +2,7 @@ * * Copyright (C) 2007 Ray Strode <rstrode@redhat.com> * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> + * Copyright (C) 2008 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -951,8 +952,15 @@ gdm_chooser_widget_activate_selected_item (GdmChooserWidget *widget) model = GTK_TREE_MODEL (widget->priv->list_store); is_already_active = FALSE; + path = NULL; + get_selected_path (widget, &path); + if (path == NULL) { + g_debug ("GdmChooserWidget: no row selected"); + return; + } + if (widget->priv->active_row != NULL) { GtkTreePath *active_path; |