Changeset d23aa6a for src/gui/mainwindow.cpp
- Timestamp:
- 01/18/10 15:56:41 (13 years ago)
- Branches:
- master, qt5
- Children:
- b6cd05c
- Parents:
- 5ff01fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r5ff01fe rd23aa6a 70 70 71 71 connect(static_cast<EventModel*>(dayTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavView())); 72 connect(static_cast<EventModel*>(favTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavView ()));72 connect(static_cast<EventModel*>(favTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavViewComplete())); 73 73 } 74 74 … … 135 135 int confId = 1; 136 136 static_cast<EventModel*>(favTreeView->model())->loadFavEvents(Conference::getById(confId).start(),confId); 137 favTreeView->reset(); 137 favTreeView->reset(); //Necessary reset: 138 // if favourite event unselected as favourite is the only one in its time, and reset is not produced, crashed 139 } 140 141 void MainWindow::updateFavViewComplete() 142 { 143 int confId = 1; 144 updateFavView(); 138 145 updateDayView(Conference::getById(confId).start()); 139 146 }
Note: See TracChangeset
for help on using the changeset viewer.