--- a/QScintilla/ShellHistoryDialog.py Fri Nov 01 15:48:48 2013 +0100 +++ b/QScintilla/ShellHistoryDialog.py Sun Nov 03 15:58:22 2013 +0100 @@ -46,7 +46,7 @@ Private slot to handle a change of the selection. """ selected = len(self.historyList.selectedItems()) > 0 - self.copyButton.setEnabled(selected and \ + self.copyButton.setEnabled(selected and self.vm.activeWindow() is not None) self.deleteButton.setEnabled(selected) self.executeButton.setEnabled(selected)