[poppler] 2 commits - qt4/demos

Pino Toscano pino at kemper.freedesktop.org
Sat Apr 26 14:40:17 PDT 2008


 qt4/demos/optcontent.cpp |    1 -
 qt4/demos/viewer.cpp     |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a188f3cd36775d78ace5b5d62c8ab7c059b3b2b1
Author: Pino Toscano <pino at kde.org>
Date:   Sat Apr 26 23:42:09 2008 +0200

    reset the current page to 0, when closing a document

diff --git a/qt4/demos/viewer.cpp b/qt4/demos/viewer.cpp
index 6fb9495..e1f1d73 100644
--- a/qt4/demos/viewer.cpp
+++ b/qt4/demos/viewer.cpp
@@ -201,6 +201,7 @@ void PdfViewer::closeDocument()
         obs->documentClosed();
     }
 
+    m_currentPage = 0;
     delete m_doc;
     m_doc = 0;
 
commit 7eca6da6436ffc1c41cfed1a07be4dafa1172463
Author: Pino Toscano <pino at kde.org>
Date:   Sat Apr 26 23:41:45 2008 +0200

    no need to manually disconnect from the model, as it will be deleted by the document anyway

diff --git a/qt4/demos/optcontent.cpp b/qt4/demos/optcontent.cpp
index 9c3f05a..f0bb9d7 100644
--- a/qt4/demos/optcontent.cpp
+++ b/qt4/demos/optcontent.cpp
@@ -58,7 +58,6 @@ void OptContentDock::fillInfo()
 
 void OptContentDock::documentClosed()
 {
-    disconnect(m_view->model(), SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(reloadImage()));
     m_view->setModel(0);
     AbstractInfoDock::documentClosed();
 }


More information about the poppler mailing list