mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Fix bug 5695: Default button in GuiHyperlink must be "OK"
http://bugzilla.lyx.org/show_bug.cgi?id=5695 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28726 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1486fb5d64
commit
8bb4c7bfe9
@ -46,6 +46,8 @@ GuiHyperlink::GuiHyperlink(GuiView & lv)
|
||||
|
||||
setFocusProxy(targetED);
|
||||
|
||||
bc().setPolicy(ButtonPolicy::OkCancelReadOnlyPolicy);
|
||||
|
||||
bc().setOK(okPB);
|
||||
bc().setCancel(closePB);
|
||||
bc().addReadOnly(targetED);
|
||||
|
@ -139,6 +139,9 @@
|
||||
<property name="text" >
|
||||
<string>&OK</string>
|
||||
</property>
|
||||
<property name="autoDefault" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="default" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
@ -149,6 +152,9 @@
|
||||
<property name="text" >
|
||||
<string>&Close</string>
|
||||
</property>
|
||||
<property name="autoDefault" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
Loading…
Reference in New Issue
Block a user