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

branch
maintenance
changeset 8176
31965986ecd1
parent 8151
8c1445825e7b
child 8218
7c09585bd960
equal deleted inserted replaced
8153:e01ae92db699 8176:31965986ecd1
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