206 |
206 |
207 if self.__serverPort != self.peerPort() and \ |
207 if self.__serverPort != self.peerPort() and \ |
208 not Preferences.getCooperation("AutoAcceptConnections"): |
208 not Preferences.getCooperation("AutoAcceptConnections"): |
209 # don't ask for reverse connections or |
209 # don't ask for reverse connections or |
210 # if we shall accept automatically |
210 # if we shall accept automatically |
211 res = E5MessageBox.yesNo(None, |
211 res = E5MessageBox.yesNo( |
|
212 None, |
212 self.trUtf8("New Connection"), |
213 self.trUtf8("New Connection"), |
213 self.trUtf8("""<p>Accept connection from """ |
214 self.trUtf8("""<p>Accept connection from """ |
214 """<strong>{0}@{1}</strong>?</p>""").format( |
215 """<strong>{0}@{1}</strong>?</p>""").format( |
215 user, hostInfo.hostName()), |
216 user, hostInfo.hostName()), |
216 yesDefault=True) |
217 yesDefault=True) |