linguist: Fix loading of multiple identical source texts
authorTobias Koenig <tobias.koenig@kdab.com>
Mon, 13 Apr 2015 07:16:16 +0000 (09:16 +0200)
committerTobias Koenig <tokoe@codereview.qt-project.org>
Tue, 14 Apr 2015 06:15:25 +0000 (06:15 +0000)
commitcebd22acc7e3125fa1f033f844d2fb1ea99f1f6c
treeeff7c33e2ab44734b7a2faac82e327c2d922403d
parentad31b989bff4ef0c616b1beccd4b30933683dd98
linguist: Fix loading of multiple identical source texts

Show all translations from all .ts files in case
they provide the same source text and comment multiple
times with different IDs.

Previously, Qt Linguist showed the translations only for
the first occurrence, because the merging code in
MultiDataModel::append() compared only source text
and comment, but not the message ID in case it was there.

Task-number: QTBUG-45520
Change-Id: I3b527f0d9ce67a88e1c235f4b67d106cc0a49dc2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
src/linguist/linguist/messagemodel.cpp
src/linguist/linguist/messagemodel.h