Make WebFlowCredentialsDialog cancellation- and deletion-safe
authorMichael Schuster <michael@schuster.ms>
Mon, 23 Dec 2019 04:14:21 +0000 (05:14 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Tue, 24 Dec 2019 06:46:57 +0000 (07:46 +0100)
commit0bcac1882a6f86f7127fd7ee091c06a40e2c9048
tree6cf18a6b64ba1c493101dd5cb0e5878ea6873de0
parentb6b04aeff8e29885ca7b4e3569b67909e7e6de91
Make WebFlowCredentialsDialog cancellation- and deletion-safe

- Add new signal to let WebFlowCredentials know and emit asked() to also
  tell AccountState that the user won't authenticate, and triggering
  log-out state in the settings window.

- Use deleteLater() to safely delete WebFlowCredentialsDialog, so
  that Qt can free it at the right time and without crashes.
  Do the same with it's _webView and _flow2AuthWidget on closeEvent().

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/creds/webflowcredentials.cpp
src/gui/creds/webflowcredentials.h
src/gui/creds/webflowcredentialsdialog.cpp
src/gui/creds/webflowcredentialsdialog.h