diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-04-30 11:40:54 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-04-30 12:36:41 +0200 |
commit | e3b03d77b7427af6d50d408e8bafa6aaf6c43553 (patch) | |
tree | 2464b2a6c7acefb93fc001835167a91699f5d52c /src/plugins | |
parent | 8d4289bb9ce016e2d894145e25661c87082d4e39 (diff) | |
download | qt-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')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp | 2 |
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) |