qml/Dialogs: Update error handling with the global object