yorikvanhavre / BIM_Workbench

A BIM Workbench for FreeCAD
363 stars 77 forks source link

Avoid failure when cancelling image load #68

Closed pachi closed 3 years ago

pachi commented 3 years ago

QFileDialog.getOpenFileName returns a tuple which has as first element the selected file name, so we need to check this instead of just the tuple (which is always generated).

yorikvanhavre commented 3 years ago

good catch, thanks!