Commit bbfde648 authored by Hugues Delorme's avatar Hugues Delorme Committed by Tobias Hunger

Bazaar: rename mistyped local variable

In function BazaarPlugin::showCommitWidget() variable m_changeLogPattern
is now renamed to changeLogPattern (this is not a class attribute !)

Change-Id: I432bcbc34f922460bf30ea5ed5e8802e12b32e8b
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent cd0673f7
......@@ -561,11 +561,11 @@ void BazaarPlugin::showCommitWidget(const QList<VCSBase::VCSBaseClient::StatusIt
deleteCommitLog();
// Open commit log
QString m_changeLogPattern = QDir::tempPath();
if (!m_changeLogPattern.endsWith(QLatin1Char('/')))
m_changeLogPattern += QLatin1Char('/');
m_changeLogPattern += QLatin1String("qtcreator-bzr-XXXXXX.msg");
m_changeLog = new QTemporaryFile(m_changeLogPattern, this);
QString changeLogPattern = QDir::tempPath();
if (!changeLogPattern.endsWith(QLatin1Char('/')))
changeLogPattern += QLatin1Char('/');
changeLogPattern += QLatin1String("qtcreator-bzr-XXXXXX.msg");
m_changeLog = new QTemporaryFile(changeLogPattern, this);
if (!m_changeLog->open()) {
outputWindow->appendError(tr("Unable to generate a temporary file for the commit editor."));
return;
......
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