diff --git a/bin/pdf2png.py b/bin/pdf2png.py index 9eceadb..efb44f3 100755 --- a/bin/pdf2png.py +++ b/bin/pdf2png.py @@ -101,7 +101,7 @@ def pdf_to_img(self, chooser_dialog, pdffilepath): else: err = 'gs (GhostScript) not available for conversion' if err: - dialog2 = Gtk.MessageDialog(self, 0, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, "Warning!") + dialog2 = Gtk.MessageDialog(chooser_dialog, 0, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, "Warning!") dialog2.format_secondary_text("{0}".format(err)) dialog2.run() dialog2.destroy()