diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-05-02 11:39:11 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-05-06 10:54:45 +0200 |
commit | c45e4e614ac5174d90158b51b79bf44bbe725d66 (patch) | |
tree | 0171314b9eeb94fa47bea74c68854e950140af21 /src/plugins/git/logchangedialog.cpp | |
parent | 9228587b8e1c2123cd475c0504dd70672e8208a4 (diff) |
Git: Do not return empty string for top commit in LogChangeDialog
Change-Id: I26cff005974102c037bbbff04b7606e7f8a07b84
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/logchangedialog.cpp')
-rw-r--r-- | src/plugins/git/logchangedialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/git/logchangedialog.cpp b/src/plugins/git/logchangedialog.cpp index 2bf627be36..23e3233970 100644 --- a/src/plugins/git/logchangedialog.cpp +++ b/src/plugins/git/logchangedialog.cpp @@ -76,9 +76,8 @@ bool LogChangeWidget::init(const QString &repository, const QString &commit, boo QString LogChangeWidget::commit() const { - // Return Sha1, or empty for top commit. if (const QStandardItem *sha1Item = currentItem(Sha1Column)) - return sha1Item->row() ? sha1Item->text() : QString(); + return sha1Item->text(); return QString(); } |