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
This commit is contained in:
Roeland Jago Douma 2015-03-19 09:05:57 +01:00 committed by Christian Kamm
parent 3cef771868
commit 4b56cc6e08

View file

@ -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()