def METHOD_NAME(self, doc):
    if doc == self._document:
        self._document = None
        if self.pageCombo.model():
            self.pageCombo.model().deleteLater()
        self.pageCombo.clear()
        self.pageCombo.update() # otherwise it doesn't redraw
        self.view.clear()