'QV moved from/to dock. Close and reopen the pane/window.
Also called when QV is closed and the user asks to move the focus'

def open_quickview(self):

    if (self.current_instance and (not self.current_instance.is_closed)):
        self.current_instance.reject()
    self.current_instance = None
    self.qaction.triggered.emit()
