browser: avoid an error message when closing windows
When a selection was active, the selection-change callback was called while shutting down, even though the view was effectively gone.
This commit is contained in:
parent
e01f7c2ba5
commit
1d58a2f73c
|
@ -2583,6 +2583,8 @@ static GList * _browser_get_selection(Browser * browser)
|
|||
{
|
||||
GtkTreeSelection * treesel;
|
||||
|
||||
if(browser->current == NULL)
|
||||
return NULL;
|
||||
#if GTK_CHECK_VERSION(2, 6, 0)
|
||||
if(browser_get_view(browser) != BV_DETAILS)
|
||||
return gtk_icon_view_get_selected_items(GTK_ICON_VIEW(
|
||||
|
|
Loading…
Reference in New Issue
Block a user