PERFORCE change 17522 for review

Robert Watson rwatson at freebsd.org
Sun Sep 15 15:39:25 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17522

Change 17522 by rwatson at rwatson_paprika on 2002/09/15 08:39:20

	After generating a close() event, return from the constructor
	rather than allowing it to continue.
	
	Remove an extraneous printf.

Affected files ...

.. //depot/projects/trustedbsd/misc/kmlsinstall/kmlsinstaller.cc#3 edit

Differences ...

==== //depot/projects/trustedbsd/misc/kmlsinstall/kmlsinstaller.cc#3 (text+ko) ====

@@ -158,17 +158,16 @@
 
 	int new_center_x, new_center_y;
 
-	printf("x: %d, y: %d\n", mainwindow_size.width(),
-	    mainwindow_size.height());
-
 	new_center_x = mainwindow_size.width() / 2 + this->x();
 	new_center_y = mainwindow_size.height() / 2 + this->y();
 
 	wizard->move(new_center_x - (dialog_size.width() / 2),
 	    new_center_y - (dialog_size.height() / 2));
 
-	if (wizard->exec() == FALSE)
+	if (wizard->exec() == FALSE) {
 		close();
+		return;
+	}
 
 	/*
 	 * Don't permit the window to be closed from here until the
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list