forked from AuroraMiddleware/gtk
check if last_selected is valid before doing a strcmp on it, which may
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org> * gtk/gtkfilesel.c: check if last_selected is valid before doing a strcmp on it, which may happen if selections happen programmatically instead of through the UI (#86566)
This commit is contained in:
parent
9cde6b74d5
commit
de4cf94bc2
@ -1,3 +1,9 @@
|
||||
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: check if last_selected is valid before doing
|
||||
a strcmp on it, which may happen if selections happen programmatically
|
||||
instead of through the UI (#86566)
|
||||
|
||||
Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: check if last_selected is valid before doing
|
||||
a strcmp on it, which may happen if selections happen programmatically
|
||||
instead of through the UI (#86566)
|
||||
|
||||
Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: check if last_selected is valid before doing
|
||||
a strcmp on it, which may happen if selections happen programmatically
|
||||
instead of through the UI (#86566)
|
||||
|
||||
Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: check if last_selected is valid before doing
|
||||
a strcmp on it, which may happen if selections happen programmatically
|
||||
instead of through the UI (#86566)
|
||||
|
||||
Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: check if last_selected is valid before doing
|
||||
a strcmp on it, which may happen if selections happen programmatically
|
||||
instead of through the UI (#86566)
|
||||
|
||||
Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Sep 24 23:54:20 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: check if last_selected is valid before doing
|
||||
a strcmp on it, which may happen if selections happen programmatically
|
||||
instead of through the UI (#86566)
|
||||
|
||||
Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
|
||||
|
@ -2301,7 +2301,8 @@ gtk_file_selection_file_changed (GtkTreeSelection *selection,
|
||||
* was selected, which is used for subsequent range selections.
|
||||
* So search up from there.
|
||||
*/
|
||||
if (compare_filenames (fs->last_selected,
|
||||
if (fs->last_selected &&
|
||||
compare_filenames (fs->last_selected,
|
||||
g_ptr_array_index (new_names, 0)) == 0)
|
||||
index = new_names->len - 1;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user