| 228 | } |
| 229 | |
| 230 | void MainWindow::new_database() |
| 231 | { |
| 232 | load_db l; |
| 233 | QString selectedFilter; |
| 234 | QString fname = QFileDialog::getSaveFileName(this, l.caption, homedir, |
| 235 | l.filter, &selectedFilter, QFileDialog::DontConfirmOverwrite); |
| 236 | // make sure that, if the 3 letter extension was left selected |
| 237 | // in Qt's OS X file open dialog, |
| 238 | // the filename actually ends with that extension. |
| 239 | // Otherwise usability breaks in jarring ways. |
| 240 | init_database(getFullFilename(fname, selectedFilter)); |
| 241 | } |
| 242 | |
| 243 | void MainWindow::load_database() |
| 244 | { |
nothing calls this directly
no outgoing calls
no test coverage detected