Bug 340035 - presentation mode ignores settings
Summary: presentation mode ignores settings
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 00:02 UTC by illumilore
Modified: 2014-11-10 18:40 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description illumilore 2014-10-17 00:02:48 UTC
In okulars settings, I have the 'advance every' unchecked, but in presentation mode, it still automatically advances regardless of the setting.

Reproducible: Always
Comment 1 Burkhard Lück 2014-10-17 04:19:22 UTC
Kubuntu 14.04
$ okular --version
Qt: 4.8.6
KDE: 4.14.2
Okular: 0.20.2

Build from sources
$ okular --version
Qt: 4.8.6
KDE: 4.14.1
Okular: 0.20.0

$ okular --version
xxQt: 4.8.2
KDE Development Platform: 4.14.60
xxOkularxx: 0.20.60
xx

I can not reproduce this issue

What is the output of "$ okular --version" in a konsole on your system?
Comment 2 illumilore 2014-10-17 06:05:09 UTC
$ okular --version
Qt: 4.8.6
KDE Development Platform: 4.14.1
Okular: 0.20.2


Also, the seconds is not ignored, so if I have advance every unchecked, but the grayed out value at 1 second, it will advance every one second. If the grayed out value of it is at 5 seconds, it will always advance to the next slide every 5 seconds.
Comment 3 Albert Astals Cid 2014-10-27 21:44:14 UTC
Is this with all documents or just with some?
Comment 4 illumilore 2014-10-28 00:53:21 UTC
I have tested it with pdf files. I don't know of other filetypes for okular
Comment 5 Albert Astals Cid 2014-10-29 00:28:21 UTC
Can you attach one of those pdf files? Can you also attach your .kde/share/config/okularpartrc  .kde/share/config/okularrc
files?
Comment 6 illumilore 2014-10-29 01:09:57 UTC
I just tested it on some other pdf files, and it seems to occur only on some pdf files but not others. The one that I've found it to occur is 23MB and I can't attach it here.
Comment 7 illumilore 2014-10-29 01:12:32 UTC
Also, there is no okularpartrc or okularrc in the specified folders.
Comment 8 Albert Astals Cid 2014-10-29 21:30:37 UTC
Well send the file over mail then
Comment 9 illumilore 2014-10-29 23:38:22 UTC
I sent a copy to aacid@kde.org
Comment 10 Albert Astals Cid 2014-10-29 23:47:34 UTC
The behaviour is correct. The pdf file itself instructs us to do that, if you open the file with a text editor, you will see lots of 
/Dur 5

Which means that the page should be shown for 5 seconds, and that's what we do. If you open the file with Adobe Reader you'll see it's also exactly what it does.
Comment 11 illumilore 2014-10-30 01:51:47 UTC
If I enable the setting in okular, set it to one second, then disable it, okular will then advance the page every one second. So if the page should be shown for 5 seconds, then okular is still misbehaving.
Comment 12 Albert Astals Cid 2014-10-30 23:06:52 UTC
Git commit bf43555650c4c88c652f584a1ebf36c140d403b2 by Albert Astals Cid.
Committed on 30/10/2014 at 23:06.
Pushed by aacid into branch 'KDE/4.14'.

Only take Okular::SettingsCore::slidesAdvanceTime into consideration if the user actually has autoAdvance checked

Fixes the case in which the page has duration, and Okular::SettingsCore::slidesAdvanceTime is smaller than the page duration but autoAdvance is disabled

M  +8    -3    ui/presentationwidget.cpp

http://commits.kde.org/okular/bf43555650c4c88c652f584a1ebf36c140d403b2
Comment 13 illumilore 2014-10-31 00:55:58 UTC
Is there a way to override the pdf's setting? I don't see why the user shouldn't be able to override something annoying like that.
Comment 14 Albert Astals Cid 2014-10-31 21:51:47 UTC
Don't blame the viewer, blame whoever created the file. Anyway if you want to create a new wish item in bugzilla feel free to.