diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-18 19:01:13 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-18 19:01:13 +0200 |
| commit | 3de7e346babbfbb856a2a08f01cea2f431899eb5 (patch) | |
| tree | 3eab698fd039e5831543dbba2ffb2b65bf22bb1a | |
| parent | ce05b587481acea35751b12091e01b5de4bcba87 (diff) | |
Minor fix regarding area's being locked.
| -rw-r--r-- | courtroom.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/courtroom.cpp b/courtroom.cpp index 461de381..347e889f 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -948,7 +948,12 @@ void Courtroom::list_areas() for (int n_area = 0 ; n_area < area_list.size() ; ++n_area) { - QString i_area = area_list.at(n_area); + QString i_area = ""; + i_area.append("["); + i_area.append(QString::number(n_area)); + i_area.append("] "); + + i_area.append(area_list.at(n_area)); if (ao_app->arup_enabled) { @@ -975,7 +980,7 @@ void Courtroom::list_areas() { // Colouring logic here. ui_area_list->item(n_listed_areas)->setBackground(free_brush); - if (arup_locks.at(n_area) == "Locked") + if (arup_locks.at(n_area) == "LOCKED") { ui_area_list->item(n_listed_areas)->setBackground(locked_brush); } |
