MCPcopy Create free account
hub / github.com/chris2511/xca / new_database

Method new_database

widgets/MW_menu.cpp:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void 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
243void MainWindow::load_database()
244{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected