diff options
Diffstat (limited to 'embed/mozilla/FilePicker.cpp')
-rw-r--r-- | embed/mozilla/FilePicker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp index 39283c56e..9187915e1 100644 --- a/embed/mozilla/FilePicker.cpp +++ b/embed/mozilla/FilePicker.cpp @@ -90,10 +90,9 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t { LOG ("GFilePicker::Init") - nsCOMPtr<nsIDOMWindow> dw = do_QueryInterface (parent); - if (dw) + if (parent) { - GtkWidget *pwin = MozillaFindGtkParent (dw); + GtkWidget *pwin = MozillaFindGtkParent (parent); gtk_window_set_transient_for (GTK_WINDOW (mDialog), GTK_WINDOW (pwin)); } |