| 207 | } |
| 208 | |
| 209 | void ImportDialog::accept() { |
| 210 | if (!m_liveDataSource) { |
| 211 | bool rc = importTo(m_mainWin->statusBar()); |
| 212 | if (rc) { |
| 213 | // the import was successful, set the project to Changed and close the dialog |
| 214 | m_mainWin->project()->setChanged(true); |
| 215 | QDialog::accept(); |
| 216 | } |
| 217 | } else |
| 218 | QDialog::accept(); |
| 219 | } |
no test coverage detected