Ignore:
Timestamp:
01/21/10 15:12:57 (12 years ago)
Author:
timkoma <timkoma@…>
Branches:
master, qt5
Children:
e493054
Parents:
6a807e7
Message:

update for the search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/eventmodel.cpp

    r6a807e7 r9d8946b  
    185185}
    186186
    187 void EventModel::loadSearchResultEvents(const QDate &aDate, int aConferenceId)
     187int EventModel::loadSearchResultEvents(const QDate &aDate, int aConferenceId)
    188188{
    189189    clearModel();
     
    192192    {
    193193        qDebug() << "Loading search result Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
    194         mEvents = Event::getSearchResultByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start");
    195     }
     194        try{
     195            mEvents = Event::getSearchResultByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start");
     196        }
     197        catch( OrmException &e  ){
     198            qDebug() << "Event::getSearchResultByDate failed: " << e.text();
     199        }
     200        catch(...){
     201            qDebug() << "Event::getSearchResultByDate failed";
     202        }
     203
     204    }
     205
    196206    createTimeGroups();
     207
     208    return mEvents.count();
    197209}
    198210
Note: See TracChangeset for help on using the changeset viewer.