| 219 | } |
| 220 | |
| 221 | void RoutingSettings::ShowModal() |
| 222 | { |
| 223 | if (exec() != QDialog::Accepted) |
| 224 | return; |
| 225 | |
| 226 | if (!SaveSettings()) |
| 227 | { |
| 228 | ShowMessage("Bad start or finish coords input."); |
| 229 | ShowModal(); |
| 230 | return; |
| 231 | } |
| 232 | |
| 233 | int const routerType = m_routerType->currentIndex(); |
| 234 | m_framework.GetRoutingManager().SetRouter(static_cast<routing::RouterType>(routerType)); |
| 235 | } |
| 236 | } // namespace qt |