diff options
author | Arno <am@disconnect.de> | 2014-06-29 09:41:30 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-06-29 09:41:30 +0200 |
commit | f295cfb8672d97bb5c804499bdb311a9a0d8039b (patch) | |
tree | 77b54514e17d6bb453bd9431707f9f37954c9fc2 /pictureviewer2.cpp | |
parent | b5bd9cf0b981ee0c87ead9e20c36247932de7818 (diff) | |
download | SheMov-f295cfb8672d97bb5c804499bdb311a9a0d8039b.tar.gz SheMov-f295cfb8672d97bb5c804499bdb311a9a0d8039b.tar.bz2 SheMov-f295cfb8672d97bb5c804499bdb311a9a0d8039b.zip |
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.
Diffstat (limited to 'pictureviewer2.cpp')
-rw-r--r-- | pictureviewer2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QString, QStringList> sortedPaths; int maxRows = 0; foreach(MappingData d, mapData){ - QStringList pItems = d.path.first(); + QStringList pItems = d.path; if(pItems.size() > maxRows){ maxRows = pItems.size(); } |