Corrected logic that sets Tx msg# when double-clicking callsign in

a "CQ" message.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@1719 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2009-11-28 21:51:47 +00:00
parent b8e09b7c2d
commit e2a3a1b2b7

View File

@ -297,8 +297,8 @@ def dbl_click_call(t,t1,rpt,nbox,event):
if hiscall[:1]=='*': hiscall=hiscall[1:]
if worked.has_key(hiscall.strip()):
# MsgBox("Possible dupe: " + hiscall)
t="Possible dupe: " + hiscall
msg=Pmw.MessageDialog(root,buttons=('OK','Cancel'),message_text=t)
t3="Possible dupe: " + hiscall
msg=Pmw.MessageDialog(root,buttons=('OK','Cancel'),message_text=t3)
msg.geometry(msgpos())
if g.Win32: msg.iconbitmap("wsjt.ico")
msg.focus_set()
@ -331,6 +331,9 @@ def dbl_click_call(t,t1,rpt,nbox,event):
tx5.delete(0,END)
tx5.insert(0,t2+"73")
i3=t[:i1].strip().rfind(' ')+1
print 'A ',t
print 'B',i3,i1,t[i3:i1]
print 'C ',t[i3:i1].strip()
if t[i3:i1].strip() == 'CQ' or nbox >= 2:
ntx.set(1)
else: