Merge lp:~zhangew401/scope-aggregator/fix-lp-1604212 into lp:scope-aggregator

Proposed by Zhang Enwei
Status: Merged
Approved by: Kyle Nitzsche
Approved revision: 168
Merged at revision: 168
Proposed branch: lp:~zhangew401/scope-aggregator/fix-lp-1604212
Merge into: lp:scope-aggregator
Diff against target: 38 lines (+11/-5)
2 files modified
CMakeLists.txt (+1/-1)
src/utils.cpp (+10/-4)
To merge this branch: bzr merge lp:~zhangew401/scope-aggregator/fix-lp-1604212
Reviewer Review Type Date Requested Status
Kyle Nitzsche (community) Approve
Gary.Wang Approve
Penk Chen Pending
Review via email: mp+300406@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Gary.Wang (gary-wzl77) wrote :

Thanks for this merge proposal.
It looks good to me.

P.S.
I think this issue was introduced by this MP
https://code.launchpad.net/~gary-wzl77/scope-aggregator/4.8-opt
Sorry.

review: Approve
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

LGTM - thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-07-07 21:53:05 +0000
+++ CMakeLists.txt 2016-07-19 02:03:53 +0000
@@ -1,4 +1,4 @@
1set(VERSION "4.9")1set(VERSION "4.10")
22
3# Supress qDebug() output3# Supress qDebug() output
4ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )4ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )
55
=== modified file 'src/utils.cpp'
--- src/utils.cpp 2016-07-07 21:03:37 +0000
+++ src/utils.cpp 2016-07-19 02:03:53 +0000
@@ -280,14 +280,20 @@
280 {280 {
281 QString child_dept = scope_o[QStringLiteral("child_department")].toString();281 QString child_dept = scope_o[QStringLiteral("child_department")].toString();
282282
283 if (agg_scope_->lang().size() == 2 && child_dept.contains(QStringLiteral("LANGCODE")))283 if (agg_scope_->lang().size() == 2)
284 {284 {
285 child_dept = child_dept.replace(QStringLiteral("LANGCODE"), qstr(agg_scope_->lang()));285 if (child_dept.contains(QStringLiteral("LANGCODE")))
286 {
287 child_dept = child_dept.replace(QStringLiteral("LANGCODE"), qstr(agg_scope_->lang()));
288 }
286 scopeLocalId_childDept_m[local_id] = child_dept.toStdString();289 scopeLocalId_childDept_m[local_id] = child_dept.toStdString();
287 }290 }
288 if (agg_scope_->country().size() == 2 && child_dept.contains(QStringLiteral("COUNTRYCODE")))291 if (agg_scope_->country().size() == 2)
289 {292 {
290 child_dept = child_dept.replace(QStringLiteral("COUNTRYCODE"), qstr(agg_scope_->country()));293 if (child_dept.contains(QStringLiteral("COUNTRYCODE")))
294 {
295 child_dept = child_dept.replace(QStringLiteral("COUNTRYCODE"), qstr(agg_scope_->country()));
296 }
291 scopeLocalId_childDept_m[local_id] = child_dept.toStdString();297 scopeLocalId_childDept_m[local_id] = child_dept.toStdString();
292 }298 }
293 qDebug() << qstr("=== CHDEPT. lang: %1 local %2. dept %3").arg(qstr(agg_scope_->lang()), 299 qDebug() << qstr("=== CHDEPT. lang: %1 local %2. dept %3").arg(qstr(agg_scope_->lang()),

Subscribers

People subscribed via source and target branches

to all changes: