[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/dialogs
From: Michael Pyne <mpyne () purinchu ! net>
Date: 2009-02-27 4:07:36
Message-ID: 1235707656.266587.10617.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 932623 by mpyne:
Disable auto default buttons in KDialog (user code can set it back if they want). This allows
actual default buttons to still work fine even if a different button has the focus. Fix will
show up in KDE 4.3, will backport to KDE 4.2.2.
CCBUG:82014
CCBUG:148972
M +4 -0 kdialog.cpp
--- trunk/KDE/kdelibs/kdeui/dialogs/kdialog.cpp #932622:932623
@@ -149,6 +149,10 @@
mButtonList.insert( key, button );
mButtonSignalMapper.setMapping( button, key );
+ // since focus may not be on default button, disable auto-default
+ // (an auto-defaulted focused button "beats" the real default)
+ button->setAutoDefault( false );
+
QObject::connect(button, SIGNAL(clicked()),
&mButtonSignalMapper, SLOT( map() ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic