MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / verifyFile

Method verifyFile

src/Gui/ModuleIO.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37/* TRANSLATOR Gui::ModuleIO */
38
39bool ModuleIO::verifyFile(const QString& filename)
40{
41 QFileInfo fi(filename);
42 if (!fi.exists() || !fi.isFile()) {
43 QMessageBox::critical(
44 Gui::getMainWindow(),
45 tr("File not found"),
46 tr("The file '%1' cannot be opened.").arg(filename)
47 );
48 return false;
49 }
50
51 return true;
52}
53
54void ModuleIO::openFile(const QString& filename)
55{

Callers

nothing calls this directly

Calls 3

isFileMethod · 0.80
getMainWindowFunction · 0.70
existsMethod · 0.45

Tested by

no test coverage detected