forked from qt-creator/qt-creator
VcsBaseClient: Fix build on windows
Windows does pick ::log in favor of this->log in the lambda. Change-Id: Ib3037606dfe70de955b10e69e2bc513b99b82fca Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -101,8 +101,8 @@ VcsBaseClientPrivate::VcsBaseClientPrivate(VcsBaseClient *client, VcsBaseClientS
|
||||
void VcsBaseClientPrivate::bindCommandToEditor(VcsCommand *cmd, VcsBaseEditorWidget *editor)
|
||||
{
|
||||
editor->setCommand(cmd);
|
||||
QObject::connect(cmd, &VcsCommand::finished,
|
||||
m_cmdFinishedMapper, static_cast<void (QSignalMapper::*)()>(&QSignalMapper::map));
|
||||
connect(cmd, &VcsCommand::finished,
|
||||
m_cmdFinishedMapper, static_cast<void (QSignalMapper::*)()>(&QSignalMapper::map));
|
||||
m_cmdFinishedMapper->setMapping(cmd, editor);
|
||||
}
|
||||
|
||||
@@ -345,7 +345,7 @@ void VcsBaseClient::log(const QString &workingDir, const QStringList &files,
|
||||
if (!paramWidget && (paramWidget = d->createLogEditor())) {
|
||||
// editor has been just created, createVcsEditor() didn't set a configuration widget yet
|
||||
connect(paramWidget, &VcsBaseEditorParameterWidget::commandExecutionRequested,
|
||||
[=] { log(workingDir, files, extraOptions, enableAnnotationContextMenu); } );
|
||||
[=]() { this->log(workingDir, files, extraOptions, enableAnnotationContextMenu); } );
|
||||
editor->setConfigurationWidget(paramWidget);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user