Fixed ticket #26 (empty tabs after some actions).
[toast/confclerk.git] / src / gui / tabcontainer.cpp
index 357ea35c7a0a7f1fc75e85377b1a241e66581198..c17eff2622f9396314a74a5922c982dbca7e34ec 100644 (file)
@@ -96,13 +96,13 @@ void TabContainer::updateTreeViewModel(int aEventId, bool aReloadModel)
     if(aReloadModel)
     {
         // requires special handling
-        // eg. in case of favourities - some favourities may have changed
+        // eg. in case of favourites - some favourites may have changed
         // and so we need to reload them
         int confId = Conference::activeConference();
         QDate startDate = Conference::getById(confId).start();
         QDate endDate = Conference::getById(confId).end();
         dayNavigator->setDates(startDate, endDate);
-        updateTreeView( Conference::getById(confId).start() );
+        updateTreeView(dayNavigator->curDate());
     }
     else
     {