Commit 2c91b3b7 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Subversion: Clean up commit message file after failed commit attempts



This prevents creator from claiming there is a ongoing commit when
trying to commit the next time.

Task-number: QTCREATORBUG-13236
Change-Id: Iaeb27db2cbebdeaf97cd410c05cf88c5d437046b
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent aca3892b
......@@ -504,8 +504,8 @@ bool SubversionPlugin::submitEditorAboutToClose()
VcsCommand *commitCmd = m_client->createCommitCmd(m_commitRepository,
fileList,
m_commitMessageFileName);
QObject::connect(commitCmd, SIGNAL(success(QVariant)),
this, SLOT(cleanCommitMessageFile()));
QObject::connect(commitCmd, &VcsCommand::finished,
this, [this]() { cleanCommitMessageFile(); });
commitCmd->execute();
}
}
......
Markdown is supported
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