summaryrefslogtreecommitdiff
path: root/src/plugins/subversion
diff options
context:
space:
mode:
authorHugues Delorme <delorme.hugues@fougsys.fr>2012-05-23 12:04:58 +0200
committerHugues Delorme <delorme.hugues@fougsys.fr>2012-05-24 11:42:39 +0200
commit4026b5338e43baed5d19aa3c2460779c30a5b330 (patch)
treee921205c2f1cb7dd3fbab16d25c1b171bbfd544e /src/plugins/subversion
parentc8e5ab6e9271399841995e9c3332e94e14a4cdef (diff)
downloadqt-creator-4026b5338e43baed5d19aa3c2460779c30a5b330.tar.gz
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 <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/subversion')
-rw-r--r--src/plugins/subversion/subversionsubmiteditor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/subversion/subversionsubmiteditor.cpp b/src/plugins/subversion/subversionsubmiteditor.cpp
index 8b2e6d7a02..f034a703a4 100644
--- a/src/plugins/subversion/subversionsubmiteditor.cpp
+++ b/src/plugins/subversion/subversionsubmiteditor.cpp
@@ -53,7 +53,9 @@ void SubversionSubmitEditor::setStatusList(const QList<StatusFilePair> &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());
}