aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljseditor
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-07-30 16:46:27 +0200
committerhjk <hjk@qt.io>2021-08-02 14:40:33 +0000
commitff57cb548d2c528a42fa2870b2486cddc08acfb7 (patch)
tree0c7f371818d436d79cd3d65fac1c98de4d2391bf /src/plugins/qmljseditor
parent17f907da9bd73d9b1515cbdd269c93f0061b7071 (diff)
Vcs: Use more FilePath for file paths
Change-Id: I855cde65d034a9647972a7fddf1e8266d7ccfa88 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r--src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp b/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp
index 66b23afa7d3..fb736ab2b21 100644
--- a/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp
+++ b/src/plugins/qmljseditor/qmljscomponentfromobjectdef.cpp
@@ -216,7 +216,8 @@ public:
currentFile->appendIndentRange(Range(start, end + 1));
currentFile->apply();
- Core::IVersionControl *versionControl = Core::VcsManager::findVersionControlForDirectory(path);
+ Core::IVersionControl *versionControl =
+ Core::VcsManager::findVersionControlForDirectory(FilePath::fromString(path));
if (versionControl
&& versionControl->supportsOperation(Core::IVersionControl::AddOperation)) {
const QMessageBox::StandardButton button = QMessageBox::question(