From 6bab3d03de78f3424fef7d13c85764f68095e12e Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 30 Nov 2014 17:04:54 +0000 Subject: [PATCH] Reject "double-click on call" when the word is clearly not a callsign. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@4704 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 31627e9a2..1c2883e99 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1668,7 +1668,9 @@ void MainWindow::selectCall2(bool ctrl) //selectCall2 int i1=t.indexOf(" ",i); QString hiscall=t.mid(i0+1,i1-i0-1); if(hiscall!="") { - if(hiscall.length() < 13) doubleClickOnCall(hiscall, ctrl); + int n=hiscall.length(); + if( n>2 and n<13 and hiscall.toDouble()==0.0 and \ + hiscall.mid(2,-1).toInt()==0) doubleClickOnCall(hiscall, ctrl); } } //doubleClickOnCall