Only print if the browser is visible
This commit is contained in:
parent
ad8558ab4c
commit
3eae091ebb
1 changed files with 6 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue