diff -r 1b59c4ba121e -r 8cd4d08fa9f6 QScintilla/ShellHistoryDialog.py --- a/QScintilla/ShellHistoryDialog.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/ShellHistoryDialog.py Fri Mar 11 16:51:57 2011 +0100 @@ -14,6 +14,7 @@ from .Ui_ShellHistoryDialog import Ui_ShellHistoryDialog + class ShellHistoryDialog(QDialog, Ui_ShellHistoryDialog): """ Class implementing the shell history dialog. @@ -30,7 +31,7 @@ self.setupUi(self) self.historyList.addItems(history) - self.historyList.setCurrentRow(self.historyList.count() - 1, + self.historyList.setCurrentRow(self.historyList.count() - 1, QItemSelectionModel.Clear) self.historyList.scrollToItem(self.historyList.currentItem()) @@ -111,7 +112,7 @@ history = self.shell.getHistory(None) self.historyList.clear() self.historyList.addItems(history) - self.historyList.setCurrentRow(self.historyList.count() - 1, + self.historyList.setCurrentRow(self.historyList.count() - 1, QItemSelectionModel.Clear) self.historyList.scrollToItem(self.historyList.currentItem())