From kde-core-devel Fri Jul 04 15:19:24 2008 From: =?iso-8859-15?q?Andr=E9_W=F6bbeking?= Date: Fri, 04 Jul 2008 15:19:24 +0000 To: kde-core-devel Subject: Re: Handling of default button in KDialog broken Message-Id: <200807041719.25081.Woebbeking () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=121518480007637 On Friday 04 July 2008, André Wöbbeking wrote: > IMO it's a Qt regression to give focus to a button which is not the > default one. In QDialog::setVisible() this looks strange: if (fw && !fw->hasFocus()) { QFocusEvent e(QEvent::FocusIn, Qt::TabFocusReason); QApplication::sendEvent(fw, &e); } Doesn't it give focus to a random widget?