Always re-detect workspace on project change
Remove the newDir != m_gitDir guard in onProjectChanged so workspace detection always runs when the project switches, regardless of whether projectBaseDir() returns the same path.
This commit is contained in:
parent
1840a8cea9
commit
1d89a5652d
|
|
@ -1054,9 +1054,9 @@ void GitPlusPlusView::runRemoteGit(const QStringList &args, const QString &opNam
|
||||||
void GitPlusPlusView::onProjectChanged()
|
void GitPlusPlusView::onProjectChanged()
|
||||||
{
|
{
|
||||||
QString newDir = projectBaseDir();
|
QString newDir = projectBaseDir();
|
||||||
if (newDir != m_gitDir) {
|
m_gitDir = newDir;
|
||||||
m_gitDir = newDir;
|
detectWorkspace();
|
||||||
detectWorkspace();
|
if (!m_gitDir.isEmpty()) {
|
||||||
setupFileWatcher();
|
setupFileWatcher();
|
||||||
refreshAll();
|
refreshAll();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue