Stop the animation if we got an error message
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 14 Oct 2020 16:41:35 +0000 (18:41 +0200)
committerCamila (Rebase PR Action) <hello@camila.codes>
Mon, 19 Oct 2020 14:33:19 +0000 (14:33 +0000)
Otherwise it would spin forever while we know we're not doing any work
anymore since we got a message from the server.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/sharelinkwidget.cpp

index 7882cefc7b2eb802a736b6f5ec1f5c5ab0a6f9ea..3a2b40f7098fcb4d4b70a7f01c5dd60f5e0818d0 100644 (file)
@@ -401,7 +401,7 @@ void ShareLinkWidget::slotDeleteAnimationFinished()
 
 void ShareLinkWidget::slotCreateShareRequiresPassword(const QString &message)
 {
-    slotToggleAnimation(true);
+    slotToggleAnimation(message.isEmpty());
 
     showPasswordOptions(true);
     if (!message.isEmpty()) {