eric6/Plugins/VcsPlugins/vcsMercurial/HisteditExtension/HgHisteditCommitEditor.py

changeset 8151
8c1445825e7b
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
109 Private slot called by the buttonBox rejected signal. 109 Private slot called by the buttonBox rejected signal.
110 """ 110 """
111 self.close() 111 self.close()
112 QCoreApplication.exit(1) 112 QCoreApplication.exit(1)
113 113
114 @pyqtSlot(str) 114 @pyqtSlot(int)
115 def on_recentComboBox_activated(self, txt): 115 def on_recentComboBox_activated(self, index):
116 """ 116 """
117 Private slot to select a commit message from recent ones. 117 Private slot to select a commit message from recent ones.
118 118
119 @param txt text of the selected entry (string) 119 @param index index of the selected entry
120 @type int
120 """ 121 """
122 txt = self.recentComboBox.itemText(index)
121 if txt: 123 if txt:
122 self.messageEdit.setPlainText(txt) 124 self.messageEdit.setPlainText(txt)

eric ide

mercurial