Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
72fb9033
Commit
72fb9033
authored
Jan 24, 2003
by
Boris Dorès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added a NULL pointer test
- cosmetic changes
parent
e56eff61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
modules/gui/win32/preferences.cpp
modules/gui/win32/preferences.cpp
+13
-11
No files found.
modules/gui/win32/preferences.cpp
View file @
72fb9033
...
...
@@ -268,6 +268,11 @@ __fastcall TPanelPlugin::TPanelPlugin( TComponent* Owner,
ButtonDown
->
Hint
=
"Decrease the plugin priority"
;
ButtonDown
->
ShowHint
=
true
;
}
else
{
ButtonUp
=
NULL
;
ButtonDown
=
NULL
;
}
/* panel height */
Height
=
CleanCheckListBox
->
Top
+
CleanCheckListBox
->
Height
...
...
@@ -284,8 +289,8 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
* started on an item */
if
(
CleanCheckListBox
->
ItemIndex
==
-
1
)
{
ButtonUp
->
Enabled
=
false
;
ButtonDown
->
Enabled
=
false
;
if
(
ButtonUp
!=
NULL
)
ButtonUp
->
Enabled
=
false
;
if
(
ButtonDown
!=
NULL
)
ButtonDown
->
Enabled
=
false
;
return
;
}
...
...
@@ -295,16 +300,13 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
return
;
/* enable up and down buttons */
if
(
b_multi_plugins
)
if
(
b_multi_plugins
&&
ButtonUp
!=
NULL
&&
ButtonDown
!=
NULL
)
{
if
(
CleanCheckListBox
->
ItemIndex
!=
-
1
)
{
if
(
CleanCheckListBox
->
ItemIndex
==
0
)
ButtonUp
->
Enabled
=
false
;
else
ButtonUp
->
Enabled
=
true
;
if
(
CleanCheckListBox
->
ItemIndex
==
CleanCheckListBox
->
Items
->
Count
-
1
)
ButtonDown
->
Enabled
=
false
;
else
ButtonDown
->
Enabled
=
true
;
}
if
(
CleanCheckListBox
->
ItemIndex
==
0
)
ButtonUp
->
Enabled
=
false
;
else
ButtonUp
->
Enabled
=
true
;
if
(
CleanCheckListBox
->
ItemIndex
==
CleanCheckListBox
->
Items
->
Count
-
1
)
ButtonDown
->
Enabled
=
false
;
else
ButtonDown
->
Enabled
=
true
;
}
/* look for module 'Name' */
...
...
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