Bug 418292 - Okular creates an empty tab if it cannot open a file
Summary: Okular creates an empty tab if it cannot open a file
Status: RESOLVED DUPLICATE of bug 412979
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-28 14:27 UTC by postix
Modified: 2020-02-28 14:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Invalid PDF. (2.22 MB, application/pdf)
2020-02-28 14:27 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***