[Everywhere] FileInfo::hasExtension for multiple values (#9774)
* [Base] Add hasExtension for multiple values * [Gui] Use hasExtension for multiple values * [Drawing] Use hasExtension for multiple values * [Fem] Use hasExtension for multiple values * [Import] Use hasExtension for multiple values * [Mesh] Use hasExtension for multiple values * [Part] Use hasExtension for multiple values * [TechDraw] Use hasExtension for multiple values
This commit is contained in:
committed by
GitHub
parent
8b2c2dab51
commit
da2ae719f2
@@ -82,7 +82,7 @@ private:
|
||||
PyMem_Free(Name);
|
||||
|
||||
Base::FileInfo file(EncodedName.c_str());
|
||||
if (file.hasExtension("svg") || file.hasExtension("svgz")) {
|
||||
if (file.hasExtension({"svg", "svgz"})) {
|
||||
QString fileName = QString::fromUtf8(EncodedName.c_str());
|
||||
// Displaying the image in a view
|
||||
DrawingView* view = new DrawingView(nullptr, Gui::getMainWindow());
|
||||
@@ -110,7 +110,7 @@ private:
|
||||
PyMem_Free(Name);
|
||||
|
||||
Base::FileInfo file(EncodedName.c_str());
|
||||
if (file.hasExtension("svg") || file.hasExtension("svgz")) {
|
||||
if (file.hasExtension({"svg", "svgz"}) {
|
||||
QString fileName = QString::fromUtf8(EncodedName.c_str());
|
||||
// Displaying the image in a view
|
||||
DrawingView* view = new DrawingView(nullptr, Gui::getMainWindow());
|
||||
|
||||
Reference in New Issue
Block a user