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>
This commit is contained in:
Hugues Delorme
2012-05-23 12:04:58 +02:00
parent c8e5ab6e92
commit 4026b5338e

View File

@@ -53,7 +53,9 @@ void SubversionSubmitEditor::setStatusList(const QList<StatusFilePair> &statusOu
const ConstIterator cend = statusOutput.constEnd(); const ConstIterator cend = statusOutput.constEnd();
for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it) for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it)
model->addFile(it->second, it->first, true); 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());
} }