forked from qt-creator/qt-creator
Vcs: Use more FilePath for file paths
Change-Id: I855cde65d034a9647972a7fddf1e8266d7ccfa88 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -427,7 +427,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const FilePaths &filePaths)
|
||||
// Add a button for opening the file with a version control system
|
||||
// if the file is managed by an version control system which allows opening files.
|
||||
IVersionControl *versionControlForFile =
|
||||
VcsManager::findVersionControlForDirectory(directory.toString());
|
||||
VcsManager::findVersionControlForDirectory(directory);
|
||||
const bool fileManagedByVCS = versionControlForFile
|
||||
&& versionControlForFile->openSupportMode(filePath) != IVersionControl::NoOpen;
|
||||
if (fileManagedByVCS) {
|
||||
|
||||
Reference in New Issue
Block a user