Ignore:
Timestamp:
09/27/17 21:40:54 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
961971e
Parents:
c19618d
git-author:
Philipp Spitzer <philipp@…> (09/27/17 21:34:41)
git-committer:
Philipp Spitzer <philipp@…> (09/27/17 21:40:54)
Message:

Use TransactionRaii? in schedulexmlparser.cpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/schedulexmlparser.cpp

    rc19618d ra2f0d1e  
    4646    QDomElement scheduleElement = document.firstChildElement("schedule");
    4747
    48     sqlEngine->beginTransaction();
     48    TransactionRaii transaction(*sqlEngine); // begins the transaction
    4949
    5050    QString conference_title;
     
    167167        } // parsing day elements
    168168    } // schedule element
    169     sqlEngine->commitTransaction();
    170169    if (!conference_title.isNull()) {
     170        transaction.commit();
    171171        emit parsingScheduleEnd(conferenceId);
    172172    } else {
Note: See TracChangeset for help on using the changeset viewer.