aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/PrintingPromptService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/PrintingPromptService.cpp')
-rw-r--r--embed/mozilla/PrintingPromptService.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed/mozilla/PrintingPromptService.cpp b/embed/mozilla/PrintingPromptService.cpp
index 1da92c113..79059b10f 100644
--- a/embed/mozilla/PrintingPromptService.cpp
+++ b/embed/mozilla/PrintingPromptService.cpp
@@ -53,10 +53,10 @@ NS_IMETHODIMP GPrintingPromptService::ShowPrintDialog(nsIDOMWindow *parent, nsIW
nsresult rv = NS_ERROR_ABORT;
GtkWidget *gtkParent = MozillaFindGtkParent(parent);
- if (!gtkParent) return NS_ERROR_ABORT;
+ NS_ENSURE_TRUE (gtkParent, NS_ERROR_FAILURE);
EphyEmbed *embed = EPHY_EMBED (MozillaFindEmbed (parent));
- if (!embed) return NS_ERROR_ABORT;
+ NS_ENSURE_TRUE (embed, NS_ERROR_FAILURE);
dialog = ephy_print_dialog_new (gtkParent, embed, TRUE);
ephy_dialog_set_modal (dialog, TRUE);