diff options
Diffstat (limited to 'src/plugins/vcsbase/vcsbasesubmiteditor.cpp')
-rw-r--r-- | src/plugins/vcsbase/vcsbasesubmiteditor.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp index 7d32ca2f79..8b4be858e5 100644 --- a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp +++ b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp @@ -183,6 +183,7 @@ VcsBaseSubmitEditor::VcsBaseSubmitEditor(const VcsBaseSubmitEditorParameters *pa { setContext(Core::Context(parameters->context)); setWidget(d->m_widget); + document()->setDisplayName(QCoreApplication::translate("VCS", d->m_parameters->displayName)); // Message font according to settings const TextEditor::FontSettings fs = TextEditor::TextEditorSettings::instance()->fontSettings(); @@ -379,19 +380,6 @@ Core::IDocument *VcsBaseSubmitEditor::document() return d->m_file; } -QString VcsBaseSubmitEditor::displayName() const -{ - if (d->m_displayName.isEmpty()) - d->m_displayName = QCoreApplication::translate("VCS", d->m_parameters->displayName); - return d->m_displayName; -} - -void VcsBaseSubmitEditor::setDisplayName(const QString &title) -{ - d->m_displayName = title; - emit changed(); -} - QString VcsBaseSubmitEditor::checkScriptWorkingDirectory() const { return d->m_checkScriptWorkingDirectory; |