Changeset 3329d39 for src/sql


Ignore:
Timestamp:
04/16/10 14:14:19 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
a61c5f5
Parents:
2eda137
Message:

use visible notifications of errors

also early detect parsing errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/schedulexmlparser.cpp

    r2eda137 r3329d39  
    2323#include "schedulexmlparser.h"
    2424#include "sqlengine.h"
     25#include "../gui/errormessage.h"
    2526
    2627#include <QDebug>
     
    3435{
    3536    QDomDocument document;
    36     document.setContent (aData, false);
     37    QString xml_error;
     38    if (!document.setContent (aData, false, &xml_error)) {
     39        error_message("Could not parse schedule: " + xml_error);
     40        return -1;
     41    }
    3742
    3843    QDomElement scheduleElement = document.firstChildElement("schedule");
Note: See TracChangeset for help on using the changeset viewer.