Changeset e2c612c in confclerk_git for src/sql


Ignore:
Timestamp:
09/25/12 22:50:11 (10 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
f1826af
Parents:
5e50875
Message:

Reloading a conference works now.

Location:
src/sql
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sql/schedulexmlparser.cpp

    r5e50875 re2c612c  
    5555            emit(parsingScheduleBegin());
    5656            QHash<QString,QString> conference;
    57             conference["id"] = conferenceId; // conference ID is assigned automatically if 0
     57            conference["id"] = QVariant(conferenceId).toString(); // conference ID is assigned automatically if 0
    5858            conference["title"] = conferenceElement.firstChildElement("title").text();
    5959            conference["subtitle"] = conferenceElement.firstChildElement("subtitle").text();
     
    154154    sqlEngine->commitTransaction();
    155155    if (!conference_title.isNull()) {
    156         emit parsingScheduleEnd(conference_title);
     156        emit parsingScheduleEnd(conferenceId);
    157157    } else {
    158158        error_message("Could not parse schedule");
  • src/sql/schedulexmlparser.h

    r5e50875 re2c612c  
    3838        void progressStatus(int aStatus);
    3939        void parsingScheduleBegin();
    40         void parsingScheduleEnd(const QString& title);
     40        void parsingScheduleEnd(int conferenceId);
    4141};
    4242
  • src/sql/sqlengine.cpp

    r5e50875 re2c612c  
    163163        query.exec();
    164164        emitSqlQueryError(query);
    165         aConference["id"] = conferenceId;
     165        aConference["id"] = QVariant(conferenceId).toString();
    166166    }
    167167}
Note: See TracChangeset for help on using the changeset viewer.