For some reason, changing the type of the dialog switches the default
button from OK to Cancel. This restores the correct default. Must be a
QT bug.

Seeking two OKs.

rh

-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Index: QInclude.cpp
===================================================================
--- QInclude.cpp	(revision 18522)
+++ QInclude.cpp	(working copy)
@@ -110,6 +110,7 @@
 }
 
 
+//I think it's in here that the weird return behavior is being caused. Somehow.
 void QIncludeDialog::typeChanged(int v)
 {
 	switch (v) {
@@ -143,6 +144,8 @@
 			listingsGB->setEnabled(false);
 			break;
 	}
+	//This shouldn't be necessary, but it is.
+	okPB->setDefault(true);
 }
 
 

Reply via email to