| 131 | } |
| 132 | |
| 133 | QString NewMapDialog::getSelectedSymbolSetPath() const |
| 134 | { |
| 135 | QListWidgetItem* item = symbol_set_list->currentItem(); |
| 136 | if (! item || ! item->data(Qt::UserRole).isValid()) |
| 137 | { |
| 138 | // FIXME: add proper error handling for release builds, or remove. |
| 139 | Q_ASSERT(false); |
| 140 | return QString{}; |
| 141 | } |
| 142 | |
| 143 | return item->data(Qt::UserRole).toString(); |
| 144 | } |
| 145 | |
| 146 | void NewMapDialog::accept() |
| 147 | { |
no test coverage detected