Changeset 0d995ed for src/gui


Ignore:
Timestamp:
05/05/10 15:57:37 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
508de33
Parents:
58eb7cc
Message:

refactor: cache whole Room object in Event

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/tabcontainer.cpp

    r58eb7cc r0d995ed  
    8686    Event *event = static_cast<Event*>(aIndex.internalPointer());
    8787
    88     Room room = Room::retrieve(event->roomId());
    89     QVariant mapPathV = room.map();
     88    QVariant mapPathV = event->room()->map();
    9089    QString mapPath;
    9190    if (!mapPathV.isValid()) {
     
    101100
    102101    QPixmap map(mapPath);
    103     MapWindow window(map, room.name(),this);
     102    MapWindow window(map, event->room()->name(),this);
    104103    window.exec();
    105104}
Note: See TracChangeset for help on using the changeset viewer.