Perforce: Get top level also when env is set

Fixes: QTCREATORBUG-18771
Change-Id: Ic90f6a96ea6d978f7c36b188527b222a7a13f510
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2019-01-11 09:40:45 +02:00
committed by Orgad Shaneh
parent 667e622d5f
commit 1269217be3

View File

@@ -812,7 +812,7 @@ bool PerforcePlugin::managesDirectoryFstat(const QString &directory)
return entry.m_isManaged;
}
if (!m_settings.isValid()) {
if (m_settings.topLevel().isEmpty() && m_settings.defaultEnv())
if (m_settings.topLevel().isEmpty())
getTopLevel(directory, true);
if (!m_settings.isValid())