mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Fixed selection in table with a single row
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8965 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
58c72939b1
commit
10b6a795ae
1 changed files with 5 additions and 7 deletions
|
@ -874,15 +874,13 @@ byExtendingSelection: (BOOL)flag
|
|||
|
||||
if (flag == NO)
|
||||
{
|
||||
if (_numberOfRows == 1)
|
||||
/* If _numberOfRows == 1, we can skip trying to deselect the
|
||||
only row - because we have been called to select it. */
|
||||
if (_numberOfRows > 1)
|
||||
{
|
||||
/* Extreme case - we are asked to deselect then select the
|
||||
same row. */
|
||||
return;
|
||||
[_selectedRows removeAllObjects];
|
||||
_selectedRow = -1;
|
||||
}
|
||||
|
||||
[_selectedRows removeAllObjects];
|
||||
_selectedRow = -1;
|
||||
}
|
||||
else // flag == YES
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue