fixed set location so that it puts the qra locator in the right place
[spider.git] / cmd / set / location.pl
index a9be3e006d8bccef5b7d881ed59457096219ba19..41f44194005f73d2f404ead1377d220880ef45a8 100644 (file)
@@ -24,8 +24,8 @@ if ($user) {
        $user->lat($lat);
        $user->long($long);
        DXProt::broadcast_all_ak1a(DXProt::pc41($call, 3, $line), $DXProt::me);
-       if (!$user->qra) {
-               my $qra = DXBearing::lltos($lat, $long);
+       unless ($user->qra && DXBearing::is_qra($user->qra) ) {
+               my $qra = DXBearing::lltoqra($lat, $long);
                $user->qra($qra);
        }