forked from qt-creator/qt-creator
VCS: Clean up submit editor handling
It was not possible to simultaneously open two commit editors for different version control systems, also there was no reason to scan all open editors for the submit editor, since the plugins can just remember the editor that they opened. Change-Id: I1bea6ece3cd6faa1ecc0566bdd6f5fb10c816963 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -43,12 +43,6 @@ CommitEditor::CommitEditor(const VcsBase::VcsBaseSubmitEditorParameters *paramet
|
||||
setDisplayName(tr("Commit Editor"));
|
||||
}
|
||||
|
||||
const BazaarCommitWidget *CommitEditor::commitWidget() const
|
||||
{
|
||||
CommitEditor *nonConstThis = const_cast<CommitEditor *>(this);
|
||||
return static_cast<const BazaarCommitWidget *>(nonConstThis->widget());
|
||||
}
|
||||
|
||||
BazaarCommitWidget *CommitEditor::commitWidget()
|
||||
{
|
||||
return static_cast<BazaarCommitWidget *>(widget());
|
||||
|
||||
Reference in New Issue
Block a user