Git: Keep panel data when editor is changed

Change-Id: I3c6a1ff6206b5b412c9ae89eb9b8f5a27dab2e62
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-08-13 19:47:59 +03:00
committed by Orgad Shaneh
parent 7e7fb2244a
commit 70f0e168e4
3 changed files with 13 additions and 7 deletions

View File

@@ -111,9 +111,7 @@ void GitSubmitEditor::setCommitData(const CommitData &d)
m_amendSHA1 = d.amendSHA1;
GitSubmitEditorWidget *w = submitEditorWidget();
w->initialize(m_commitType, m_workingDirectory);
w->setPanelData(d.panelData);
w->setPanelInfo(d.panelInfo);
w->initialize(m_commitType, m_workingDirectory, d.panelData, d.panelInfo);
w->setHasUnmerged(false);
setEmptyFileListEnabled(m_commitType == AmendCommit); // Allow for just correcting the message