Commit b0d7394e authored by Tobias Hunger's avatar Tobias Hunger
Browse files

VCS: Handle empty arguments in EditorParameterWidgets

Task-number: QTCREATORBUG-6251
Change-Id: I833bcecf295b7191df1916a658b16f008f69f902

Reviewed-by: default avatarTobias Hunger <>
parent f654d664
......@@ -270,8 +270,12 @@ const QList<VCSBaseEditorParameterWidget::OptionMapping> &VCSBaseEditorParameter
QStringList VCSBaseEditorParameterWidget::argumentsForOption(const OptionMapping &mapping) const
const QToolButton *tb = qobject_cast<const QToolButton *>(mapping.widget);
if (tb && tb->isChecked())
return QStringList(mapping.optionName);
if (tb && tb->isChecked()) {
if (!mapping.optionName.isEmpty())
return QStringList(mapping.optionName);
return QStringList();
const QComboBox *cb = qobject_cast<const QComboBox *>(mapping.widget);
if (cb) {
Supports Markdown
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