def METHOD_NAME(self, doc):
    """Opens first page of score after compilation"""
    if doc == self.mainwindow().currentDocument():
        files = svgfiles.SvgFiles.instance(doc)
        model = files.model() # forces update
        if files:
            self._document = doc
            with qutil.signalsBlocked(self.pageCombo):
                self.pageCombo.setModel(model)
                self.pageCombo.setCurrentIndex(files.current)
            self.view.load(files.url(files.current))