Fix 3ds Max when merging objects
Fixes crashing issues relating to qt dialogs and max modal.