Commit 5035f90d authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

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
parent d3b43b0b
Pipeline #17473 passed with stage
in 12 minutes and 2 seconds
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment