Fix forms sometimes showing an old value

If from processFormatAction we call setAppearanceText,
we need to call setAppearanceText from outside too, otherwise when the
formatting action doesn't create a different text we still show the old
old value

CCBUGS: 418445
remotes/origin/work/aacid/use_mimes_open_dialog
Albert Astals Cid 6 years ago
parent d3b43b0b1e
commit 5035f90dd9
  1. 1
      core/document.cpp

@ -1237,6 +1237,7 @@ void DocumentPrivate::recalculateForms()
if ( newVal != oldVal )
{
fft->setText( newVal );
fft->setAppearanceText( newVal );
if ( const Okular::Action *action = fft->additionalAction( Okular::FormField::FormatField ) )
{
// The format action handles the refresh.

Loading…
Cancel
Save