Core: Add a convenience findTopLevelForDirectory to VcsManager

Change-Id: If5a846e0793b25b738084cacb8dba51fb80399d4
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-07-02 22:52:53 +03:00
committed by Orgad Shaneh
parent 8a1bb5aeb3
commit 342cb69dda
4 changed files with 11 additions and 5 deletions

View File

@@ -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();