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
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.
I have opened a new bug report, which describes the issue better. *** This bug has been marked as a duplicate of bug 457115 ***