From 4026b5338e43baed5d19aa3c2460779c30a5b330 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Wed, 23 May 2012 12:04:58 +0200 Subject: [PATCH] Svn: fix lack of completion in submit editor Completion in the "Description" field of the commit editor was broken with the Subversion plugin. Change-Id: I82045b96b5f987dce849265abb169cdfbbed45be Reviewed-by: Tobias Hunger --- src/plugins/subversion/subversionsubmiteditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/subversion/subversionsubmiteditor.cpp b/src/plugins/subversion/subversionsubmiteditor.cpp index 8b2e6d7a02d..f034a703a47 100644 --- a/src/plugins/subversion/subversionsubmiteditor.cpp +++ b/src/plugins/subversion/subversionsubmiteditor.cpp @@ -53,7 +53,9 @@ void SubversionSubmitEditor::setStatusList(const QList &statusOu const ConstIterator cend = statusOutput.constEnd(); for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it) model->addFile(it->second, it->first, true); - setFileModel(model); + // Hack to allow completion in "description" field : completion needs a root repository, the + // checkScriptWorkingDirectory property is fine (at this point it was set by SubversionPlugin) + setFileModel(model, this->checkScriptWorkingDirectory()); }