From f295cfb8672d97bb5c804499bdb311a9a0d8039b Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 29 Jun 2014 09:41:30 +0200 Subject: Major rework of MappingTreeResultView + Model Well, I hope this fixes the crashes for good. String comparison for looking up the parents really wasn't a prudent thing to do... Use the ParentIds instead. --- pictureviewer2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pictureviewer2.cpp') diff --git a/pictureviewer2.cpp b/pictureviewer2.cpp index 2c36dc9..4532030 100644 --- a/pictureviewer2.cpp +++ b/pictureviewer2.cpp @@ -496,7 +496,7 @@ void PictureViewer2::constructMappingItem(const PicData &file){ QMap sortedPaths; int maxRows = 0; foreach(MappingData d, mapData){ - QStringList pItems = d.path.first(); + QStringList pItems = d.path; if(pItems.size() > maxRows){ maxRows = pItems.size(); } -- cgit v1.2.3-70-g09d2