forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.2'
Conflicts: src/shared/qbs Change-Id: Ic39fd1c411632f56312fae31c0c88ebc1098b5a4
This commit is contained in:
@@ -1062,10 +1062,12 @@ bool GitPlugin::submitEditorAboutToClose()
|
||||
m_gitClient->interactiveRebase(m_submitRepository, amendSHA1, true);
|
||||
} else {
|
||||
m_gitClient->continueCommandIfNeeded(m_submitRepository);
|
||||
if (editor->panelData().pushAction == NormalPush)
|
||||
if (editor->panelData().pushAction == NormalPush) {
|
||||
m_gitClient->push(m_submitRepository);
|
||||
else if (editor->panelData().pushAction == PushToGerrit)
|
||||
connect(editor, &QObject::destroyed, this, &GitPlugin::delayedPushToGerrit);
|
||||
} else if (editor->panelData().pushAction == PushToGerrit) {
|
||||
connect(editor, &QObject::destroyed, this, &GitPlugin::delayedPushToGerrit,
|
||||
Qt::QueuedConnection);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user