Commit 02796611 authored by Eike Ziller's avatar Eike Ziller
Browse files

VCS: Remove unnecessary indirection



Change-Id: I73d70da7e6cc6006da92c05bf0b15da6b8bbf5bf
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 8cad383b
...@@ -1530,9 +1530,8 @@ IEditor *ClearCasePlugin::showOutputInEditor(const QString& title, const QString ...@@ -1530,9 +1530,8 @@ IEditor *ClearCasePlugin::showOutputInEditor(const QString& title, const QString
e->setSource(source); e->setSource(source);
if (codec) if (codec)
e->setCodec(codec); e->setCodec(codec);
IEditor *ie = e->editor(); EditorManager::activateEditor(editor);
EditorManager::activateEditor(ie); return editor;
return ie;
} }
const ClearCaseSettings &ClearCasePlugin::settings() const const ClearCaseSettings &ClearCasePlugin::settings() const
......
...@@ -1182,9 +1182,8 @@ IEditor *CvsPlugin::showOutputInEditor(const QString& title, const QString &outp ...@@ -1182,9 +1182,8 @@ IEditor *CvsPlugin::showOutputInEditor(const QString& title, const QString &outp
e->setSource(source); e->setSource(source);
if (codec) if (codec)
e->setCodec(codec); e->setCodec(codec);
IEditor *ie = e->editor(); EditorManager::activateEditor(editor);
EditorManager::activateEditor(ie); return editor;
return ie;
} }
CvsSettings CvsPlugin::settings() const CvsSettings CvsPlugin::settings() const
......
...@@ -1185,9 +1185,8 @@ Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title, const QS ...@@ -1185,9 +1185,8 @@ Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title, const QS
e->setSuggestedFileName(s); e->setSuggestedFileName(s);
if (codec) if (codec)
e->setCodec(codec); e->setCodec(codec);
Core::IEditor *ie = e->editor(); Core::EditorManager::activateEditor(editor);
Core::EditorManager::activateEditor(ie); return editor;
return ie;
} }
void PerforcePlugin::slotSubmitDiff(const QStringList &files) void PerforcePlugin::slotSubmitDiff(const QStringList &files)
......
...@@ -1036,9 +1036,8 @@ Core::IEditor *SubversionPlugin::showOutputInEditor(const QString &title, const ...@@ -1036,9 +1036,8 @@ Core::IEditor *SubversionPlugin::showOutputInEditor(const QString &title, const
e->setSource(source); e->setSource(source);
if (codec) if (codec)
e->setCodec(codec); e->setCodec(codec);
Core::IEditor *ie = e->editor(); Core::EditorManager::activateEditor(editor);
Core::EditorManager::activateEditor(ie); return editor;
return ie;
} }
SubversionSettings SubversionPlugin::settings() const SubversionSettings SubversionPlugin::settings() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment