Changeset b1fc17a


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

handled the case when the map is not available

Location:
src
Files:
1 added
2 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);
  • src/maps.qrc

    rf9db452 rb1fc17a  
    2525    <file>maps/rooms/lameere.png</file>
    2626    <file>maps/rooms/ua2114.png</file>
     27    <file>maps/rooms/not-available.png</file>
    2728</qresource>
    2829</RCC>
Note: See TracChangeset for help on using the changeset viewer.