From 9785c228ad8f714861b68e172b05415f8ea59f19 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 1 Mar 2013 17:49:36 +0000 Subject: [PATCH] Bug fix: it crashed if you double-clicked on a line with no decode. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3028 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 1 + wsjtx.iss | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index fdfd1c752..d73ac3db2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1266,6 +1266,7 @@ void MainWindow::doubleClickOnCall(bool ctrl) if(i4>60) i4=60; QString t3=t.mid(i1,i4); QStringList t4=t3.split(" ",QString::SkipEmptyParts); + if(t4.length() <7) return; int nfreq=int(t4.at(4).toFloat()); ui->TxFreqSpinBox->setValue(nfreq); g_pWideGraph->setQSOfreq(nfreq); diff --git a/wsjtx.iss b/wsjtx.iss index 05bf0060a..02e3a2648 100644 --- a/wsjtx.iss +++ b/wsjtx.iss @@ -1,7 +1,7 @@ [Setup] AppName=wsjtx -AppVerName=wsjtx Version 0.5 r2791 -AppCopyright=Copyright (C) 2001-2012 by Joe Taylor, K1JT +AppVerName=wsjtx Version 0.5 r3026 +AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT DefaultDirName=c:\wsjtx DefaultGroupName=wsjtx