Fix method call

This commit is contained in:
Tim Bentley 2011-08-26 11:21:47 +01:00
parent 869bc9bb20
commit 61feddd34e

View File

@ -296,7 +296,6 @@ class PrintServiceForm(QtGui.QDialog, Ui_PrintServiceDialog):
``printer`` ``printer``
A *QPrinter* object. A *QPrinter* object.
""" """
self.update_song_usage()
self.document.print_(printer) self.document.print_(printer)
def displaySizeChanged(self, display): def displaySizeChanged(self, display):
@ -344,6 +343,7 @@ class PrintServiceForm(QtGui.QDialog, Ui_PrintServiceDialog):
""" """
if not self.printDialog.exec_(): if not self.printDialog.exec_():
return return
self.update_song_usage()
# Print the document. # Print the document.
self.document.print_(self.printer) self.document.print_(self.printer)