From 86c2342ed2ca9f2ae95f81e9f594328a8d0bf499 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 28 Apr 2013 21:05:02 +0300 Subject: Git: Fix Precedes/Follows display for show opened from log Change-Id: Ib999f8f00b065e4e51b70f1c5f81bdd17baabd8c Reviewed-by: Tobias Hunger --- src/plugins/git/giteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/git') diff --git a/src/plugins/git/giteditor.cpp b/src/plugins/git/giteditor.cpp index fe2871ad89..23eb2ba73c 100644 --- a/src/plugins/git/giteditor.cpp +++ b/src/plugins/git/giteditor.cpp @@ -192,7 +192,7 @@ void GitEditor::setPlainTextDataFiltered(const QByteArray &a) } case VcsBase::DiffOutput: { const QFileInfo fi(source()); - const QString workingDirectory = fi.absolutePath(); + const QString workingDirectory = fi.isDir() ? fi.absoluteFilePath() : fi.absolutePath(); QByteArray precedes, follows; if (array.startsWith("commit ")) { // show int lastHeaderLine = array.indexOf("\n\n") + 1; -- cgit v1.2.1