Dialogs: Change in how most QFileDialogs are handled, so they are in the event loop rather than being modal and blocking.

This change fixes an issue with Qt5 where QFileDialogs static methods block all thread activity, blocking the SerialConnection from receiving and parsing data.