Changeset b1fc17a for src/gui


Ignore:
Timestamp:
01/19/10 09:27:46 (13 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
9afc0ee
Parents:
f9db452
Message:

handled the case when the map is not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    rf9db452 rb1fc17a  
    201201    Event *event = static_cast<Event*>(aIndex.internalPointer());
    202202    QString mapPath = QString(":/maps/rooms/%1.png").arg(event->room());
     203    if(!QFile::exists(mapPath))
     204        mapPath = QString(":/maps/rooms/not-available.png");
    203205    QPixmap map(mapPath);
    204206    MapWindow window(map,this);
Note: See TracChangeset for help on using the changeset viewer.