summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-04-30 11:40:54 +0200
committerFriedemann Kleint <Friedemann.Kleint@digia.com>2013-04-30 12:36:41 +0200
commite3b03d77b7427af6d50d408e8bafa6aaf6c43553 (patch)
tree2464b2a6c7acefb93fc001835167a91699f5d52c /src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
parent8d4289bb9ce016e2d894145e25661c87082d4e39 (diff)
downloadqt-creator-e3b03d77b7427af6d50d408e8bafa6aaf6c43553.tar.gz
Fix broken "git blame" on Windows.
Change 48b9747550d555e5cde18146c55ed499a6744e36 caused an empty string to be passed as argument, resulting in "invalid revision ''". Change-Id: I0bcfad3f64298f0d14b00347bc12f42c3c00270e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp')
-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)