summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp b/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
index f5acd7bb63..1b162d251f 100644
--- a/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
+++ b/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
@@ -148,7 +148,7 @@ QToolButton *VcsBaseEditorParameterWidget::addToggleButton(const QString &option
const QString &label,
const QString &tooltip)
{
- return addToggleButton(QStringList(option), label, tooltip);
+ return addToggleButton(option.isEmpty() ? QStringList() : QStringList(option), label, tooltip);
}
QToolButton *VcsBaseEditorParameterWidget::addToggleButton(const QStringList &options, const QString &label, const QString &tooltip)