search translator comments of every translation
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Mon, 19 Aug 2013 15:41:50 +0000 (17:41 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 27 Aug 2013 11:41:48 +0000 (13:41 +0200)
Change-Id: I45ce7c0d22826ec9d383da65a8018356569ebd3a
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/linguist/mainwindow.cpp

index a1762ed..3479ed1 100644 (file)
@@ -1003,13 +1003,13 @@ void MainWindow::findAgain()
                             break;
                         if (searchItem(DataModel::Comments, m->extraComment()))
                             break;
-                        if (searchItem(DataModel::Comments, m->translatorComment()))
-                            break;
                     }
                     // Note: we do not look into plurals on grounds of them not
                     // containing anything much different from the singular.
                     if (searchItem(DataModel::Translations, m->translation()))
                         break;
+                    if (searchItem(DataModel::Comments, m->translatorComment()))
+                        break;
                     found = false;
                     // did not find the search string in this message
                 } while (0);