[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/kpdf/core
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2005-01-03 0:45:48
Message-ID: 20050103004548.037EE1BA6D () office ! kde ! org
[Download RAW message or body]

CVS commit by aacid: 

Fix typos, correct orderig a bit


  M +10 -9     document.cpp   1.7


--- kdegraphics/kpdf/core/document.cpp  #1.6:1.7
@@ -83,5 +83,5 @@ KPDFDocument::KPDFDocument()
     connect( d->memCheckTimer, SIGNAL( timeout() ), this, SLOT( slotCheckMemory() ) );
     d->saveBookmarksTimer = new QTimer( this );
-    connect( d->memCheckTimer, SIGNAL( timeout() ), this, SLOT( saveDocumentInfo() ) );
+    connect( d->saveBookmarksTimer, SIGNAL( timeout() ), this, SLOT( saveDocumentInfo() ) );
 }
 
@@ -126,12 +126,4 @@ bool KPDFDocument::openDocument( const Q
         return false;
 
-    // start memory check timer
-    d->memCheckTimer->start( 1000 );
-
-    // start bookmark saver timer
-    d->memCheckTimer->start( 5 * 60 * 1000 );
-
-    loadDocumentInfo();
-
     // filter pages, setup observers and set the first page as current
     if ( pages_vector.size() > 0 )
@@ -140,4 +132,13 @@ bool KPDFDocument::openDocument( const Q
         setCurrentPage( 0 );
     }
+
+    loadDocumentInfo();
+
+    // start bookmark saver timer
+    d->saveBookmarksTimer->start( 5 * 60 * 1000 );
+
+    // start memory check timer
+    d->memCheckTimer->start( 2000 );
+
     return true;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic