Ensure we have a window in _action_reload_stop_activate
This commit is contained in:
parent
7c7be5644d
commit
61af413407
1 changed files with 3 additions and 2 deletions
|
@ -3284,13 +3284,14 @@ _action_reload_stop_activate (GtkAction* action,
|
|||
{
|
||||
GdkModifierType state = (GdkModifierType)0;
|
||||
gint x, y;
|
||||
GdkWindow* window;
|
||||
gboolean from_cache = TRUE;
|
||||
|
||||
if (!strcmp (gtk_action_get_name (action), "ReloadUncached"))
|
||||
from_cache = FALSE;
|
||||
else
|
||||
else if ((window = gtk_widget_get_window (GTK_WIDGET (browser))))
|
||||
{
|
||||
gdk_window_get_pointer (NULL, &x, &y, &state);
|
||||
gdk_window_get_pointer (window, &x, &y, &state);
|
||||
if (state & GDK_SHIFT_MASK)
|
||||
from_cache = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue