Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
0e3cf697
Commit
0e3cf697
authored
Feb 12, 2016
by
Hisham
Browse files
Fix crash when emptying column. Closes #381.
parent
011bf30d
Changes
1
Hide whitespace changes
Inline
Side-by-side
MetersPanel.c
View file @
0e3cf697
...
@@ -50,7 +50,10 @@ static void MetersPanel_delete(Object* object) {
...
@@ -50,7 +50,10 @@ static void MetersPanel_delete(Object* object) {
void
MetersPanel_setMoving
(
MetersPanel
*
this
,
bool
moving
)
{
void
MetersPanel_setMoving
(
MetersPanel
*
this
,
bool
moving
)
{
Panel
*
super
=
(
Panel
*
)
this
;
Panel
*
super
=
(
Panel
*
)
this
;
this
->
moving
=
moving
;
this
->
moving
=
moving
;
((
ListItem
*
)
Panel_getSelected
(
super
))
->
moving
=
moving
;
ListItem
*
selected
=
(
ListItem
*
)
Panel_getSelected
(
super
);
if
(
selected
)
{
selected
->
moving
=
moving
;
}
if
(
!
moving
)
{
if
(
!
moving
)
{
Panel_setSelectionColor
(
super
,
CRT_colors
[
PANEL_SELECTION_FOCUS
]);
Panel_setSelectionColor
(
super
,
CRT_colors
[
PANEL_SELECTION_FOCUS
]);
Panel_setDefaultBar
(
super
);
Panel_setDefaultBar
(
super
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment