From 1c275cdce280f12cccf39d42f9b42ba763314847 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 12 Jul 2002 09:54:13 +0000 Subject: [PATCH] do not allow to select all cells in radio mode git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14136 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMatrix.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/NSMatrix.m b/Source/NSMatrix.m index 84583a439..154ec4182 100644 --- a/Source/NSMatrix.m +++ b/Source/NSMatrix.m @@ -977,6 +977,12 @@ static SEL getSel; { unsigned i, j; + /* Can't select all if only one can be selected. */ + if (_mode == NSRadioModeMatrix) + { + return; + } + _selectedCell = nil; _selectedRow = -1; _selectedColumn = -1;