Commit c17f798a authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Do not invoke git for details about empty change



Change-Id: I2a7b36063ad3c67d3a1fbe999659dc0051723b10
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
Reviewed-by: default avatarPetar Perisin <petar.perisin@gmail.com>
parent ddfec003
......@@ -210,8 +210,14 @@ void ChangeSelectionDialog::recalculateDetails()
m_ui->workingDirectoryEdit->setPalette(palette);
}
const QString change = m_ui->changeNumberEdit->text();
if (change.isEmpty()) {
m_ui->detailsText->setPlainText(QString());
return;
}
QStringList args;
args << QLatin1String("log") << QLatin1String("-n1") << m_ui->changeNumberEdit->text();
args << QLatin1String("log") << QLatin1String("-n1") << change;
m_process = new QProcess(this);
m_process->setWorkingDirectory(workingDir);
......
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