[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: s_page.nw



  User: cnieves 
  Date: 05/12/02 12:04:43

  Modified:    .        s_page.nw
  Log:
  Disabled the autosave feature in previews. 
  
  
  
  
  Revision  Changes    Path
  1.17      +16 -0     eda/geda/devel/libgeda/noweb/s_page.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_page.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/s_page.nw,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- s_page.nw	27 Nov 2005 00:15:07 -0000	1.16
  +++ s_page.nw	2 Dec 2005 17:04:42 -0000	1.17
  @@ -630,6 +630,22 @@
   {
     PAGE *p_current;
   
  +  if (toplevel == NULL) {
  +    return 0;
  +  }
  +
  +  /* Do nothing if the interval is 0 */
  +  if (toplevel->auto_save_interval == 0) {
  +    return toplevel->auto_save_interval;
  +  }
  +  
  +  /* In which situation can be page_head = NULL?
  +     Should we just disable the autosave timeout returning 0 or
  +     just wait for more pages to be added? */
  +  if (toplevel->page_head == NULL) {
  +    return (toplevel->auto_save_interval);
  +  }
  +
     for (p_current = toplevel->page_head->next;
          p_current != NULL;
          p_current = p_current->next) {