Bug 428923 - New file not in new tab, instead replaced
Summary: New file not in new tab, instead replaced
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-10 08:39 UTC by pauledd
Modified: 2020-11-10 19:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
KDE Global Menu activated (102.89 KB, image/png)
2020-11-10 18:29 UTC, pauledd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pauledd 2020-11-10 08:39:19 UTC
SUMMARY
Opening a new PDF via FILE->Open replaces the existing displayed file instead of creating a additional tab while option "SETTINGS->Configure Okular->Open new files in Tabs" is ENABLED.

STEPS TO REPRODUCE
1. Enable "SETTINGS->Configure Okular->Open new files in Tabs"
2. Open any PDF
3. Open another PDF via File menu

OBSERVED RESULT
first PDF gets exchanged by the second PDF

EXPECTED RESULT
second PDF should be displayed in new TAB

Operating System: Arch Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.7.10-arch1-1-paul
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 31.3 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Comment 1 Nate Graham 2020-11-10 18:15:38 UTC
Cannot reproduce.

Are you sure you didn't happen to accidentally open the exact same file? Can you check again?
Comment 2 pauledd 2020-11-10 18:29:38 UTC
Created attachment 133207 [details]
KDE Global Menu activated
Comment 3 pauledd 2020-11-10 18:30:40 UTC
I think I found the cause of the problem.
In KDE System Settings->Application Style->Window Decorations->Titlebar Buttons
I enabled the Global Application Menu.

With if I disable it (remove from the titlebar) okular opens new documents in new tabs as desired.
Comment 4 pauledd 2020-11-10 19:01:47 UTC
Okay, I definitely found the real problem.

The application link command on my desktop to ocular was followed by " --unique %F", whatever that means, wherever that came from... removing it solved the problem. 
For debugging purposes I started okular via terminal "LANG=en okular", and this worked, while starting okular from my desktop icon link gave okulars wrong behavior... 

Its not a bug, just my stupidity :)