Skip to content

Commit

Permalink
Fix last issue ith std::bind
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jan 21, 2022
1 parent deafa98 commit f485fac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/internallinkwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f485fac

Please sign in to comment.