Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5c66f395
Commit
5c66f395
authored
Aug 07, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash in Preferences.
parent
017cb21e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+7
-2
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+1
-0
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
5c66f395
...
...
@@ -97,6 +97,9 @@ ConfigControl *ConfigControl::createControl( vlc_object_t *p_this,
case
CONFIG_ITEM_MODULE_LIST_CAT
:
p_control
=
new
ModuleListConfigControl
(
p_this
,
p_item
,
parent
,
true
,
l
,
line
);
/* Special Hack for a bug in video-filter */
if
(
qobject_cast
<
ModuleListConfigControl
*>
(
p_control
)
->
groupBox
==
NULL
)
return
NULL
;
break
;
case
CONFIG_ITEM_STRING
:
if
(
!
p_item
->
i_list
)
...
...
@@ -607,6 +610,7 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
VStringConfigControl
(
_p_this
,
_p_item
,
_parent
)
{
groupBox
=
NULL
;
/* Special Hack */
if
(
!
p_item
->
psz_text
)
return
;
groupBox
=
new
QGroupBox
(
qtr
(
p_item
->
psz_text
)
);
...
...
@@ -701,13 +705,14 @@ void ModuleListConfigControl::finish( bool bycat )
}
vlc_list_release
(
p_list
);
text
->
setToolTip
(
formatTooltip
(
qtr
(
p_item
->
psz_longtext
))
);
if
(
groupBox
)
groupBox
->
setToolTip
(
formatTooltip
(
qtr
(
p_item
->
psz_longtext
))
);
assert
(
groupBox
);
groupBox
->
setToolTip
(
formatTooltip
(
qtr
(
p_item
->
psz_longtext
))
);
}
#undef CHECKBOX_LISTS
QString
ModuleListConfigControl
::
getValue
()
{
assert
(
text
);
return
text
->
text
();
}
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
5c66f395
...
...
@@ -356,6 +356,7 @@ struct checkBoxListItem {
class
ModuleListConfigControl
:
public
VStringConfigControl
{
Q_OBJECT
;
friend
class
ConfigControl
;
public:
ModuleListConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QWidget
*
,
bool
,
QGridLayout
*
,
int
&
);
...
...
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