Bug 418292

Summary: Okular creates an empty tab if it cannot open a file
Product: [Applications] okular Reporter: postix <postix>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: postix, yurchor
Priority: NOR    
Version First Reported In: 1.9.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Invalid PDF.

Description postix 2020-02-28 14:27:02 UTC
Created attachment 126480 [details]
Invalid PDF.

SUMMARY

If you try to open a non valid PDF file with Okular, Okular will show an inline warning and creates a useless empty tab.
IMHO this looks like a bug or is there more sense to it?


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Comment 1 Yuri Chornoivan 2020-02-28 14:33:03 UTC
Can it be a duplicate of #412978 and #412979?

Possible solution:

https://invent.kde.org/kde/okular/-/commit/c549d28f7f963607075fb39322115d39e837d854
Comment 2 postix 2020-02-28 14:36:08 UTC
(In reply to Yuri Chornoivan from comment #1)
> Can it be a duplicate of #412978 and #412979?
> 
> Possible solution:
> 
> https://invent.kde.org/kde/okular/-/commit/
> c549d28f7f963607075fb39322115d39e837d854

Ah, yes, probably. When I searched my older bug reports, I misread the commit date as 2019 instead of 2020 and thought that it hadn't been fixed yet. ;)

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