Bug 445842 - Okular cannot open the same file twice in different tabs
Summary: Okular cannot open the same file twice in different tabs
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.08.3
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 22:29 UTC by David
Modified: 2021-11-22 21:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-11-20 22:29:12 UTC
SUMMARY
In the latest versions of Okular, if I configure it to open new files in tabs, I cannot open the same file twice to show it in two tabs, which used to be possible in earlier versions.

STEPS TO REPRODUCE
1. Launch Okular, go to Settings -> Configure Okular -> General -> Program features -> check "Open new files in tabs".
2. Open some PDF file in Okular.
3. Try opening the same PDF file again in Okular.

OBSERVED RESULT
Nothing happens.

EXPECTED RESULT
Should open the same file in a new tab.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.0-4-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD VEGA10

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2021-11-21 09:48:24 UTC
You can change that behaviour in the settings dialog if you don't like it.
Comment 2 David 2021-11-21 15:20:43 UTC
(In reply to Albert Astals Cid from comment #1)
> You can change that behaviour in the settings dialog if you don't like it.

Got it, but why would you make that option the default? It's very common if you are reading something like a scientific article to be constantly looking at different sections of the document simultaneously (for example to see the references and figures), and for me at least the only reason why I enable tabs in okular is to have the same document openened many times.
Comment 3 Albert Astals Cid 2021-11-21 22:22:37 UTC
https://invent.kde.org/graphics/okular/-/merge_requests/370

> It's very common if you are reading something like a scientific article

Reading scientific articles is probably not the most common use case for Okular
Comment 4 Laura David Hurka 2021-11-22 20:17:22 UTC
I have re-enabled this option for me, so I do not open more and more tabs of the same document, only because I am to lazy to search through all the tabs whether I have the document already open. But sometimes I want to open a second tab of one long document for the use case described.

Can we add a menu action “Duplicate tab”? Many web browsers have this action too.
Comment 5 Albert Astals Cid 2021-11-22 21:21:49 UTC
> Can we add a menu action “Duplicate tab”? Many web browsers have this action too.

Sure, doesn't seem like it should be a lot of code or make maintainability harder