Changeset 18780 for trunk/FACT++


Ignore:
Timestamp:
03/14/17 22:26:01 (8 years ago)
Author:
Daniela Dorner
Message:
fixed that AMON alerts caused the program to disconnect because of missing description
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/gcn.cc

    r16981 r18780  
    135135            const QDomElement errad  = pos2d.firstChildElement("Error2Radius");
    136136
    137             if (date.isNull()   || author.isNull() || sname.isNull() || desc.isNull() ||
     137            if (date.isNull()   || author.isNull() || sname.isNull() || //desc.isNull() ||
    138138                obsdat.isNull() || obsloc.isNull() || coord.isNull() || time.isNull() ||
    139139                pos2d.isNull()  || name1.isNull()  || name2.isNull() || val2.isNull() ||
     
    203203
    204204            Out() << Time(date.text().toStdString()).GetAsStr() << " ----- " << sname.text().toStdString() << " [" << role << "]\n";
    205             Out() << "[" << desc.text().toStdString()  << "]\n";
     205            if (!desc.isNull())
     206                Out() << "[" << desc.text().toStdString()  << "]\n";
    206207            Out() << ptype.name << "[" << ptype.type << "]: " << ptype.description << endl;
    207208            Out() << left;
Note: See TracChangeset for help on using the changeset viewer.