fix OK-response in gtk dialogs, see c7f8df124
[xboard.git] / ngamelist.c
index 058b4c8..cf937ac 100644 (file)
@@ -195,7 +195,7 @@ GameListPrepare (int byPos, int narrow)
        lg->position = pos;
        lg = (ListGame *) lg->node.succ;
     }
-GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t));
+    if(appData.debugMode) { GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t)); }
     DisplayTitle("XBoard");
     *st = NULL;
     return listLength;
@@ -358,7 +358,7 @@ SaveGameListAsText (FILE *f)
 
     /* Copy the list into the global memory block */
     if( f != NULL ) {
+
         lg = (ListGame *) gameList.head;
 
         for (nItem = 0; nItem < ((ListGame *) gameList.tailPred)->number; nItem++){
@@ -375,4 +375,3 @@ SaveGameListAsText (FILE *f)
     }
     return False;
 }
-