From 4b56cc6e081c2e1ed6a2f611763c564e87573d74 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 19 Mar 2015 09:05:57 +0100 Subject: [PATCH] On creation of a share always retrieve the share This makes sure that if a default expiration date is set this is reflected in the dialog. #2889 --- src/gui/sharedialog.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index f2d63a44d..b57f36a44 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -421,13 +421,7 @@ void ShareDialog::slotCreateShareFetched(const QString &reply) bool success; QVariantMap json = QtJson::parse(reply, success).toMap(); _public_share_id = json.value("ocs").toMap().values("data")[0].toMap().value("id").toULongLong(); - QString url = json.value("ocs").toMap().values("data")[0].toMap().value("url").toString(); - - setShareLink(url); - - setShareCheckBoxTitle(true); - - _ui->widget_shareLink->show(); + getShares(); } void ShareDialog::slotCheckBoxPasswordClicked()