Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable sync: require that port be numeric and in the appropriate range (fixes #994)

This prevent a crash that results if the user types non-numeric characters into
the port text box and then clicks the padlock.

Changeset 4da478933fb3

Parent 7d09a3dc0ba4

by David Golub

Changes to one file · Browse files at 4da478933fb3 Showing diff from parent 7d09a3dc0ba4 Diff from another changeset...

 
224
225
226
 
227
228
229
 
224
225
226
227
228
229
230
@@ -224,6 +224,7 @@
  self.portentry.setAcceptDrops(False)   self.portentry.setToolTip(_('Port'))   self.portentry.setFixedWidth(8 * fontm.width('9')) + self.portentry.setValidator(QIntValidator(0, 65536, self.portentry))   self.portentry.textChanged.connect(self.refreshUrl)   tbar.addWidget(self.portentry)   tbar.addWidget(qtlib.Spacer(2, 2))