Only set dav user after login.
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Mon, 30 Aug 2021 11:25:53 +0000 (13:25 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Fri, 3 Sep 2021 08:32:15 +0000 (08:32 +0000)
commitba2d8e8201d21e421ff7a307caf43b596fd7e6fb
tree2343a6b6421f1fe96b72dce32ee9c797eefb970b
parent9e6e4095a80542a4a4df4389b21e32156509f937
Only set dav user after login.

Setting the credentials of the account inside the auth widget is not a
good idea as that will destroy the previous credentials object which
may wait for a signal to be emitted by the credentials dialog that
was created by the credentials that are going to be deleted. Uff.

It should be enough to set the dav user only after login because the
dav user will never change.

See also the discussion here
https://github.com/nextcloud/desktop/issues/3677#issuecomment-907976839

Fixes #3677

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
src/gui/owncloudsetupwizard.cpp
src/gui/wizard/flow2authwidget.cpp