diff --git a/src/gui/internallinkwidget.cpp b/src/gui/internallinkwidget.cpp index 0b48d461a45c1..e8c65005fe5f4 100644 --- a/src/gui/internallinkwidget.cpp +++ b/src/gui/internallinkwidget.cpp @@ -35,14 +35,15 @@ InternalLinkWidget::InternalLinkWidget(const QString &localPath, const auto folderRelativePath = _localPath.mid(folder->cleanPath().length() + 1); const auto serverRelativePath = QDir(folder->remotePath()).filePath(folderRelativePath); - const auto bindLinkSlot = std::bind(&InternalLinkWidget::slotLinkFetched, this, std::placeholders::_1); + const auto bindLinkSlot = [this](QString link) { slotLinkFetched(link); }; fetchPrivateLinkUrl( folder->accountState()->account(), serverRelativePath, {}, this, - bindLinkSlot); + bindLinkSlot + ); _ui->copyInternalLinkButton->setEnabled(false); _ui->internalLinkProgressIndicator->setVisible(true);