Ignore:
Timestamp:
01/28/10 15:47:21 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
83020cd
Parents:
eb21333
Message:

some performance optimizations

  • favourities reloaded only if they have really changed
  • otherwise only event in the question is updated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    reb21333 r872aeaa  
    6767    qDebug() << " FAVOURITE [" << event.id() << "] -> " << event.isFavourite();
    6868
    69     // since the Favourite icon has changed, update TreeViews accordingly
    70     // all TreeViews have to listen on this signal
    71     emit(eventHasChanged(event.id()));
    72 
    7369    // have to emit 'eventHasChanged' signal on all events in conflict
    7470    for(int i=0; i<conflicts.count(); i++)
    7571        emit(eventHasChanged(conflicts[i].id()));
     72
     73    // since the Favourite icon has changed, update TreeViews accordingly
     74    // all TreeViews have to listen on this signal
     75    emit(eventHasChanged(event.id(),true));
    7676}
    7777
Note: See TracChangeset for help on using the changeset viewer.