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

« back to all changes in this revision

Viewing changes to src/plugin/inputmethod.cpp

  • Committer: CI bot
  • Author(s): Michael Sheldon
  • Date: 2014-11-19 15:39:08 UTC
  • mfrom: (231.3.4 fix-1377755)
  • Revision ID: ps-jenkins@lists.canonical.com-20141119153908-sy4f1e741s7mqjal
Stop the keyboard from updating IME hints whilst it hides Fixes: 1370609, 1377755
Approved by: Bill Filler, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
{
134
134
    Q_D(InputMethod);
135
135
 
 
136
    d->m_geometry->setShown(true);
 
137
    update();
136
138
    d->view->setVisible(true);
137
 
    d->m_geometry->setShown(true);
138
139
    d->editor.checkPreeditReentry(false);
139
140
}
140
141
 
337
338
{
338
339
    Q_D(InputMethod);
339
340
 
 
341
    if (!d->m_geometry->shown()) {
 
342
        // Don't update if we're in the process of hiding
 
343
        return;
 
344
    }
 
345
 
340
346
    bool valid;
341
347
 
342
348
    bool emitPredictionEnabled = false;