Fix for Issue #368

https://github.com/escoz/QuickDialog/issues/368

This small change fixes the crash I'm experiencing, but I'm not sure if it's the optimal way.