From 497b327d438b04da4c998e0663a98f4a7f5d2054 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 22 Jan 2018 10:52:25 +0100 Subject: ShareLinkWidget: Remove outdated signal connection Also convert the others to the new syntax to avoid similar errors in the future. --- src/gui/sharelinkwidget.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/sharelinkwidget.cpp') diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index 938f6b7ee..c94f37601 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -223,11 +223,10 @@ void ShareLinkWidget::slotSharesFetched(const QList> &shar // Connect all shares signals to gui slots connect(share.data(), &Share::serverError, this, &ShareLinkWidget::slotServerError); connect(share.data(), &Share::shareDeleted, this, &ShareLinkWidget::slotDeleteShareFetched); - connect(share.data(), SIGNAL(expireDateSet()), SLOT(slotExpireSet())); - connect(share.data(), SIGNAL(publicUploadSet()), SLOT(slotPermissionsSet())); - connect(share.data(), SIGNAL(passwordSet()), SLOT(slotPasswordSet())); - connect(share.data(), SIGNAL(passwordSetError(int, QString)), SLOT(slotPasswordSetError(int, QString))); connect(share.data(), &Share::permissionsSet, this, &ShareLinkWidget::slotPermissionsSet); + connect(linkShare.data(), &LinkShare::expireDateSet, this, &ShareLinkWidget::slotExpireSet); + connect(linkShare.data(), &LinkShare::passwordSet, this, &ShareLinkWidget::slotPasswordSet); + connect(linkShare.data(), &LinkShare::passwordSetError, this, &ShareLinkWidget::slotPasswordSetError); // Build the table row auto row = table->rowCount(); -- cgit v1.2.3