From owner-p4-projects Sun Sep 15 8:39:28 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 92B5437B401; Sun, 15 Sep 2002 08:39:26 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5094137B400 for ; Sun, 15 Sep 2002 08:39:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B6EF43E42 for ; Sun, 15 Sep 2002 08:39:26 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8FFdPJU000795 for ; Sun, 15 Sep 2002 08:39:25 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8FFdPBP000787 for perforce@freebsd.org; Sun, 15 Sep 2002 08:39:25 -0700 (PDT) Date: Sun, 15 Sep 2002 08:39:25 -0700 (PDT) Message-Id: <200209151539.g8FFdPBP000787@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 17522 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17522 Change 17522 by rwatson@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@FreeBSD.org with "unsubscribe p4-projects" in the body of the message