Only print if the browser is visible

This commit is contained in:
Christian Dywan 2009-04-05 11:28:42 +02:00
parent ad8558ab4c
commit 3eae091ebb

View file

@ -1605,8 +1605,12 @@ static void
_action_print_activate (GtkAction* action,
MidoriBrowser* browser)
{
GtkWidget* view = midori_browser_get_current_tab (browser);
if (view)
GtkWidget* view;
if (!GTK_WIDGET_VISIBLE (browser))
return;
if ((view = midori_browser_get_current_tab (browser)))
midori_view_print (MIDORI_VIEW (view));
}