Merge lp:~kevin-wright-1/u1db-qt/index-10-mai-i into lp:u1db-qt

Proposed by Kevin Wright
Status: Rejected
Rejected by: Cris Dywan
Proposed branch: lp:~kevin-wright-1/u1db-qt/index-10-mai-i
Merge into: lp:u1db-qt
Diff against target: 23 lines (+6/-6)
1 file modified
src/index.cpp (+6/-6)
To merge this branch: bzr merge lp:~kevin-wright-1/u1db-qt/index-10-mai-i
Reviewer Review Type Date Requested Status
Cris Dywan Disapprove
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+163320@code.launchpad.net

Commit message

Changed some lines in Index::setExpression to fix a bug that caused an Index to not be pointed to as expected, and missed having itself defined properly.

Description of the change

Changed some lines in Index::setExpression to fix a bug that caused an Index to not be pointed to as expected, and missed having itself defined properly.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

I proposed a branch incorporating this fix with a test case.

review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/index.cpp'
2--- src/index.cpp 2013-04-25 13:38:33 +0000
3+++ src/index.cpp 2013-05-10 13:46:44 +0000
4@@ -146,14 +146,14 @@
5 if (m_expression == expression)
6 return;
7
8- if (m_database)
9- {
10- m_database->putIndex(m_name, expression);
11- Q_EMIT dataInvalidated();
12- }
13-
14 m_expression = expression;
15
16+ if (m_database)
17+ {
18+ m_database->putIndex(m_name, m_expression);
19+ Q_EMIT dataInvalidated();
20+ }
21+
22 Q_EMIT expressionChanged(expression);
23 }
24

Subscribers

People subscribed via source and target branches

to all changes: