Bug 439009

Summary: Added color change toolbar button (okular part) only shown for current tab but affects all tabs (fixed by restart)
Product: [Applications] okular Reporter: postix <postix>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, postix
Priority: NOR    
Version First Reported In: 21.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description postix 2021-06-21 20:04:54 UTC
STEPS TO REPRODUCE
1. Open several documents in tabs
2. Right click on the tool bar, add e.g. "toggle colors" to the toolbar
3. Press the button, the colors should flip
4. Switch the tab

OBSERVED RESULT

The button is gone, the colors are flipped. 
After a new instance of Okular is started, the button is shown for all tabs as expected.


EXPECTED RESULT

The button is there.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210618
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.10-1-default (64-bit)
Graphics Platform: X11
Comment 1 Laura David Hurka 2021-06-22 11:33:12 UTC
I tried this with Add Bookmark, and:

1. Add ‘Add Bookmark’.
2. Switch to other tab.
3. ‘Add Bookmark’ gone.
4. Trigger ‘Toggle Change Colors’.
5. ‘Add Bookmark’ appears.

I remember that Toggle Change Colors calls refreshActionProperties(), and commit d4bf5bc873e1a4ef4207ed77bbcacb14b382bd9b in KXmlGui should have fixed it. Apparently it still doesn’t work.
Comment 2 postix 2022-07-25 13:12:10 UTC
I have opened a new bug report, which describes the issue better.

*** This bug has been marked as a duplicate of bug 457115 ***