projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b6af09
)
Select the previous list view item when an environment variable has been deleted.
author
Eric Kohl
<eric.kohl@reactos.org>
Sat, 3 Nov 2007 17:14:16 +0000
(17:14 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sat, 3 Nov 2007 17:14:16 +0000
(17:14 +0000)
svn path=/trunk/; revision=30092
reactos/dll/cpl/sysdm/environment.c
patch
|
blob
|
history
diff --git
a/reactos/dll/cpl/sysdm/environment.c
b/reactos/dll/cpl/sysdm/environment.c
index
b025755
..
8b97656
100644
(file)
--- a/
reactos/dll/cpl/sysdm/environment.c
+++ b/
reactos/dll/cpl/sysdm/environment.c
@@
-458,6
+458,14
@@
OnDeleteVariable(HWND hwndDlg,
}
(void)ListView_DeleteItem(hwndListView, iItem);
+
+ /* Select the previous item */
+ if (iItem > 0)
+ iItem--;
+
+ ListView_SetItemState(hwndListView, iItem,
+ LVIS_FOCUSED | LVIS_SELECTED,
+ LVIS_FOCUSED | LVIS_SELECTED);
}
}