Commit 25c43974 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

ScrollList gadget fix

When 'select only one' or 'multiple selections forbidden' is in use any selection changes first deselect all.
However, in the second case, the module overrode the caller's selection reason so adjust clicking on an item would not deselect it - instead reselecting it!
Logic ammended.
From http://www.riscosopen.org/forum/forums/4/topics/1057

Version 0.35. Tagged as 'Gadgets-0_35'
parent ed61893d
/* (0.34)
/* (0.35)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.34
#define Module_MajorVersion_CMHG 0.35
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 14 Jan 2012
#define Module_Date_CMHG 16 Mar 2013
#define Module_MajorVersion "0.34"
#define Module_Version 34
#define Module_MajorVersion "0.35"
#define Module_Version 35
#define Module_MinorVersion ""
#define Module_Date "14 Jan 2012"
#define Module_Date "16 Mar 2013"
#define Module_ApplicationDate "14-Jan-12"
#define Module_ApplicationDate "16-Mar-13"
#define Module_ComponentName "Gadgets"
#define Module_ComponentPath "castle/RiscOS/Sources/Toolbox/Gadgets"
#define Module_FullVersion "0.34"
#define Module_HelpVersion "0.34 (14 Jan 2012)"
#define Module_LibraryVersionInfo "0:34"
#define Module_FullVersion "0.35"
#define Module_HelpVersion "0.35 (16 Mar 2013)"
#define Module_LibraryVersionInfo "0:35"
......@@ -831,7 +831,7 @@ static _kernel_oserror *_select_item(const PrivateScrollList *sdata, unsigned in
{
int i;
selected = SELECT_SELECT;
if (selected == SELECT_ONLYONE) selected = SELECT_SELECT;
for (i = 0; i < sdata->no_entries; i++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment