It turns out the shareDeleted() signal is connected to a function
cleaning up the ShareLinkWidget holding the last shared pointer to the
Share object. Since we use member variables for calling updateFolder()
this would lead to using deleted objects.
Just swap the call and the signal to have everything back in order.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
void Share::slotDeleted()
{
- emit shareDeleted();
-
updateFolder(_account, _path);
+ emit shareDeleted();
}
void Share::slotOcsError(int statusCode, const QString &message)