Changeset dc66a91 in confclerk_git for src/gui/mainwindow.cpp


Ignore:
Timestamp:
10/17/11 20:15:33 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
c81f30a
Parents:
264f5e7
Message:

The favorite tab gets updated again after changing the favorite state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r264f5e7 rdc66a91  
    8585
    8686    // event details have changed
    87     connect(dayTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(redisplayEvent(int,bool)));
    88     connect(favsTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(redisplayEvent(int,bool)));
    89     connect(tracksTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(redisplayEvent(int,bool)));
    90     connect(roomsTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(redisplayEvent(int,bool)));
    91     connect(searchTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(redisplayEvent(int,bool)));
     87    connect(dayTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(onEventChanged(int,bool)));
     88    connect(favsTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(onEventChanged(int,bool)));
     89    connect(tracksTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(onEventChanged(int,bool)));
     90    connect(roomsTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(onEventChanged(int,bool)));
     91    connect(searchTabContainer, SIGNAL(eventChanged(int,bool)), SLOT(onEventChanged(int,bool)));
    9292
    9393    // date has changed
     
    155155
    156156
    157 
    158 void MainWindow::redisplayEvent(int aEventId, bool aReloadModel)
    159 {
     157void MainWindow::onEventChanged(int aEventId, bool favouriteChanged) {
    160158    dayTabContainer->redisplayEvent(aEventId);
    161     favsTabContainer->redisplayEvent(aEventId,aReloadModel);
     159    if (favouriteChanged) favsTabContainer->redisplayDate(dayNavigator->curDate());
     160    else favsTabContainer->redisplayEvent(aEventId);
    162161    tracksTabContainer->redisplayEvent(aEventId);
    163162    roomsTabContainer->redisplayEvent(aEventId);
    164163    searchTabContainer->redisplayEvent(aEventId);
    165164}
     165
    166166
    167167void MainWindow::useConference(int id)
Note: See TracChangeset for help on using the changeset viewer.