Bug 448721

Summary: Reopening document always opens "Content tab" instead of last opened "Preview tab"
Product: [Applications] okular Reporter: postix <postix>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: postix
Priority: NOR    
Version: 21.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description postix 2022-01-18 15:00:44 UTC
STEPS TO REPRODUCE
1.  Open Okular and a document
2.  Select the preview tab
3. Restart Okular

OBSERVED RESULT
Okular is opened but w/o any document opened yet. The preview tab is focused.

STEPS TO REPRODUCE
4. Reopen the document

OBSERVED RESULT
The document is opened but the content tab is now focused.

EXPECTED RESULT
The document is opened and the preview tab stays focused.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220115
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-1-default (64-bit)
Graphics Platform: X11