~michael-sheldon/ubuntu-keyboard/fix-1407584

« back to all changes in this revision

Viewing changes to src/lib/models/wordribbon.cpp

  • Committer: CI bot
  • Author(s): Michael Sheldon
  • Date: 2014-11-19 15:39:50 UTC
  • mfrom: (243.2.1 fix-1393487)
  • Revision ID: ps-jenkins@lists.canonical.com-20141119153950-quxan17lnrfn79be
Don't add duplicate candidates to the word ribbon when a candidate is pressed. Fixes: 1393487
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
 
164
164
void WordRibbon::onWordCandidatePressed(const WordCandidate &candidate)
165
165
{
166
 
    appendCandidate(candidate);
 
166
    Q_UNUSED(candidate);
167
167
}
168
168
 
169
 
//! \todo implement WordRibbon::onWordCandidateReleased()
170
169
void WordRibbon::onWordCandidateReleased(const WordCandidate &candidate)
171
170
{
172
171
    if (candidate.source() == WordCandidate::SourcePrediction