forked from qt-creator/qt-creator
Git: Avoid version warning when Git is not found
Task-number: QTCREATORBUG-9411 Change-Id: I0bb90e508b78d0e7c7ff86fda72399036ad665ae Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
55bb2e42fc
commit
2d68f9c808
@@ -956,7 +956,8 @@ void GitPlugin::startCommit(CommitType commitType)
|
||||
|
||||
void GitPlugin::updateVersionWarning()
|
||||
{
|
||||
if (m_gitClient->gitVersion() >= minimumRequiredVersion)
|
||||
unsigned version = m_gitClient->gitVersion();
|
||||
if (!version || version >= minimumRequiredVersion)
|
||||
return;
|
||||
Core::IEditor *curEditor = Core::EditorManager::currentEditor();
|
||||
if (!curEditor)
|
||||
|
Reference in New Issue
Block a user