forked from qt-creator/qt-creator
VCS: Emit repositoryChanged when ExpectRepoChanges flag is set
Change-Id: I7ae5199a1397258c9816ff1801fb5d0909feb626 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6f75191d2c
commit
49bad12787
@@ -1037,7 +1037,12 @@ bool VcsBasePlugin::runFullySynchronous(const QString &workingDirectory,
|
||||
// if (flags & ExpectRepoChanges)
|
||||
// Core::DocumentManager::unexpectDirectoryChange(workingDirectory);
|
||||
|
||||
return process.exitStatus() == QProcess::NormalExit && process.exitCode() == 0;
|
||||
if (process.exitStatus() == QProcess::NormalExit && process.exitCode() == 0) {
|
||||
if (flags & ExpectRepoChanges)
|
||||
Core::ICore::vcsManager()->emitRepositoryChanged(workingDirectory);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool VcsBasePlugin::runPatch(const QByteArray &input, const QString &workingDirectory,
|
||||
|
||||
Reference in New Issue
Block a user