Skip to content

Commit

Permalink
Revert "GUI: fix results if there is problem only in header and not i…
Browse files Browse the repository at this point in the history
…n file-1."

This reverts commit 997a3cd.
  • Loading branch information
danmar committed Sep 19, 2016
1 parent 997a3cd commit 1c970df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/resultstree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,18 +493,18 @@ void ResultsTree::RefreshTree()

QStandardItem *ResultsTree::EnsureFileItem(const QString &fullpath, const QString &file0, bool hide)
{
QString name0 = QDir::toNativeSeparators(StripPath(file0, false));
QString name = QDir::toNativeSeparators(StripPath(fullpath, false));
QString name = StripPath(fullpath, false);
// Since item has path with native separators we must use path with
// native separators to find it.
QStandardItem *item = FindFileItem(name0);
QStandardItem *item = FindFileItem(QDir::toNativeSeparators(name));

if (item) {
return item;
}

// Ensure shown path is with native separators
item = CreateNormalItem(name0);
name = QDir::toNativeSeparators(name);
item = CreateNormalItem(name);
item->setIcon(QIcon(":images/text-x-generic.png"));

//Add user data to that item
Expand Down

0 comments on commit 1c970df

Please sign in to comment.