Ignore:
Timestamp:
04/15/10 14:50:23 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
2eda137
Parents:
d97bcab
Message:

fix deletion of last conference

implement for cleaning all views in the tabs
clean the models when no active conference found
fix cleaning model and signalling views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/tabcontainer.cpp

    rd97bcab r04acaf9  
    5656void TabContainer::updateTreeView(const QDate &aDate)
    5757{
     58    int active_id = Conference::activeConference();
    5859    dayNavigator->show();
    59     loadEvents( aDate, Conference::activeConference() );
    60     treeView->reset();
     60    if (active_id > 0) {
     61        loadEvents(aDate, active_id);
     62    } else {
     63        static_cast<EventModel*>(treeView->model())->clearModel();
     64    }
    6165}
    6266
     
    133137}
    134138
     139void TabContainer::clearModel()
     140{
     141    static_cast<EventModel*>(treeView->model())->clearModel();
     142}
     143
Note: See TracChangeset for help on using the changeset viewer.