From c3dfe1a356fdea5f6c6c01dea585e6c21bbfebd0 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 18 Jul 2010 13:17:21 +0300 Subject: [PATCH] GUI: Fix bug that every error item got own parent item. The code could not find existing parent item since items have paths with native separators and search was done with non-native path separators. --- gui/resultstree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index ba1729b6a..81dd96fb0 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -329,7 +329,9 @@ void ResultsTree::RefreshTree() QStandardItem *ResultsTree::EnsureFileItem(const QString &fullpath, bool hide) { QString name = StripPath(fullpath, false); - QStandardItem *item = FindFileItem(name); + // Since item has path with native separators we must use path with + // native separators to find it. + QStandardItem *item = FindFileItem(QDir::toNativeSeparators(name)); if (item) {