youshengCode / IfcToolbox

Simple tools for processing IFC files. Optimize, convert, split, relocate and anonymize IFC files easily.
GNU General Public License v3.0
86 stars 14 forks source link

Selecting file other than IFC crashes application #5

Open fadelm0 opened 2 years ago

fadelm0 commented 2 years ago

I was selecting a Revit file by mistake instead of an IFC and the application kept crashing. I couldn't figure out why that was happening, until I realized that I was selecting the wrong file type. I tested with other file types and it appears that anything other than an IFC will crash the application.

It would be helpful to have a feedback notifying that you're uploading the wrong file type.

youshengCode commented 2 years ago

Hi, @fadelm0, I have checked the code, you are totally right. I have added the filter of file type in the FileSelecter (click then select file with system file browser window). But I forget the file type filter in Drag&Drop action. Thanks for your feedback!

I will fix this in the next release. I will let to know when it is released. Thanks again.