- Timestamp:
- 05/05/10 15:56:14 (13 years ago)
- Branches:
- master, qt5
- Children:
- 58eb7cc
- Parents:
- 3cdaf7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/conferenceeditor.cpp
r3cdaf7d rcec47c6 22 22 #include "urlinputdialog.h" 23 23 #include "mapwindow.h" 24 #include "errormessage.h" 24 25 25 26 #include <QInputDialog> … … 95 96 + ", " + 96 97 conf.end().toString("dd-MM-yyyy")); 98 99 QString map = conf.map(); 100 if (map.isEmpty()) { 101 showMapButton->hide(); 102 } else { 103 showMapButton->show(); 104 } 105 97 106 conferenceInfo->setCurrentIndex(0); 98 107 removeBtn->show(); … … 213 222 void ConferenceEditor::conferenceMapClicked() 214 223 { 215 QString mapPath = QString(":/maps/campus.png"); 216 if(!QFile::exists(mapPath)) 217 mapPath = QString(":/maps/rooms/not-available.png"); 224 Conference conf = Conference::getById(selected_id); 225 QString mapPath = conf.map(); 226 if(mapPath.isEmpty() or !QFile::exists(mapPath)) { 227 error_message("Map is not available"); 228 return; 229 } 218 230 219 231 QString roomName;
Note: See TracChangeset
for help on using the changeset viewer.