forked from qt-creator/qt-creator
Core: Add a convenience findTopLevelForDirectory to VcsManager
Change-Id: If5a846e0793b25b738084cacb8dba51fb80399d4 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
8a1bb5aeb3
commit
342cb69dda
@@ -1378,8 +1378,7 @@ QString VcsBaseEditorWidget::findDiffFile(const QString &f) const
|
||||
if (sourceFileInfo.isFile())
|
||||
return sourceFileInfo.absoluteFilePath();
|
||||
|
||||
QString topLevel;
|
||||
Core::VcsManager::findVersionControlForDirectory(sourceDir, &topLevel); //
|
||||
const QString topLevel = Core::VcsManager::findTopLevelForDirectory(sourceDir);
|
||||
if (topLevel.isEmpty())
|
||||
return QString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user