<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>135578</bug_id>
          
          <creation_ts>2006-10-13 12:56:26 +0000</creation_ts>
          <short_desc>Presentation mode watch file should stay in Presentation mode</short_desc>
          <delta_ts>2006-10-15 13:50:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jake Martin">foontala</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          <cc>foontala</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>476548</commentid>
    <comment_count>0</comment_count>
    <who name="Jake Martin">foontala</who>
    <bug_when>2006-10-13 12:56:27 +0000</bug_when>
    <thetext>Version:           3.5.5 (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          gcc 4.1.1 
OS:                Linux

When a file is changed during presentation mode, the presentation mode is &quot;cancelled&quot;.  It would be nice if files could change and kpdf would stay in presentation mode and &quot;watch file&quot; at the same tim.  

I would like this because I develop in latex with kile on one monitor, and would like to have kpdf in presentation mode constantly on the other monitor watching file changes.

Thanks for your hard work.  KDE is an awesome product.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477011</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2006-10-15 13:50:33 +0000</bug_when>
    <thetext>SVN commit 595680 by aacid:

When reloading a document because it changed still be in presentation mode after the reload
BUGS: 135578


 M  +2 -0      part.cpp  
 M  +1 -0      part.h  


--- branches/KDE/3.5/kdegraphics/kpdf/part.cpp #595679:595680
@@ -526,6 +526,7 @@
   if (m_viewportDirty.pageNumber == -1)
   {
     m_viewportDirty = m_document-&gt;viewport();
+    m_wasPresentationOpen = ((PresentationWidget*)m_presentationWidget != 0);
     m_pageView-&gt;showText(i18n(&quot;Reloading the document...&quot;), 0);
   }
 
@@ -534,6 +535,7 @@
     if (m_viewportDirty.pageNumber &gt;= (int)m_document-&gt;pages()) m_viewportDirty.pageNumber = (int)m_document-&gt;pages() - 1;
     m_document-&gt;setViewport(m_viewportDirty);
     m_viewportDirty.pageNumber = -1;
+    if (m_wasPresentationOpen) slotShowPresentation();
     emit enablePrintAction(true);
   }
   else
--- branches/KDE/3.5/kdegraphics/kpdf/part.h #595679:595680
@@ -158,6 +158,7 @@
 	KDirWatch *m_watcher;
 	QTimer *m_dirtyHandler;
 	DocumentViewport m_viewportDirty;
+	bool m_wasPresentationOpen;
 	
 	// Remember the search history
 	QStringList m_searchHistory;
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>