summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/submiteditorfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vcsbase/submiteditorfile.cpp')
-rw-r--r--src/plugins/vcsbase/submiteditorfile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/submiteditorfile.cpp b/src/plugins/vcsbase/submiteditorfile.cpp
index 033f58b606..4101023ba2 100644
--- a/src/plugins/vcsbase/submiteditorfile.cpp
+++ b/src/plugins/vcsbase/submiteditorfile.cpp
@@ -45,12 +45,13 @@ using namespace VcsBase::Internal;
submit editor files.
*/
-SubmitEditorFile::SubmitEditorFile(const QString &mimeType, VcsBaseSubmitEditor *parent) :
+SubmitEditorFile::SubmitEditorFile(const VcsBaseSubmitEditorParameters *parameters, VcsBaseSubmitEditor *parent) :
Core::IDocument(parent),
- m_mimeType(mimeType),
+ m_mimeType(QLatin1String(parameters->mimeType)),
m_modified(false),
m_editor(parent)
{
+ setId(parameters->id);
setTemporary(true);
}