Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3dd763ad
Commit
3dd763ad
authored
May 22, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Preferences: Remove Apply button, and fix a few segfaults with Hannes Domani patches and help
parent
198c5782
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+8
-9
No files found.
modules/gui/qt4/dialogs/preferences.cpp
View file @
3dd763ad
...
...
@@ -59,9 +59,6 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
/* Choice for types */
types
=
new
QGroupBox
(
"Show settings"
);
types
->
setAlignment
(
Qt
::
AlignHCenter
);
types
->
setToolTip
(
qtr
(
"You have to apply the preferences before
\n
"
"switching settings details if you want
\n
"
"to keep them"
)
);
QHBoxLayout
*
types_l
=
new
QHBoxLayout
(
0
);
types_l
->
setSpacing
(
3
);
types_l
->
setMargin
(
3
);
small
=
new
QRadioButton
(
"Basic"
,
types
);
types_l
->
addWidget
(
small
);
...
...
@@ -78,12 +75,10 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
/* Buttons */
QDialogButtonBox
*
buttonsBox
=
new
QDialogButtonBox
();
QPushButton
*
save
=
new
QPushButton
(
qtr
(
"&Save"
)
);
QPushButton
*
apply
=
new
QPushButton
(
qtr
(
"&Apply"
)
);
QPushButton
*
cancel
=
new
QPushButton
(
qtr
(
"&Cancel"
)
);
QPushButton
*
reset
=
new
QPushButton
(
qtr
(
"&Reset Preferences"
)
);
buttonsBox
->
addButton
(
save
,
QDialogButtonBox
::
AcceptRole
);
buttonsBox
->
addButton
(
apply
,
QDialogButtonBox
::
AcceptRole
);
buttonsBox
->
addButton
(
cancel
,
QDialogButtonBox
::
RejectRole
);
buttonsBox
->
addButton
(
reset
,
QDialogButtonBox
::
ActionRole
);
...
...
@@ -115,7 +110,6 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
}
BUTTONACT
(
save
,
save
()
);
BUTTONACT
(
apply
,
apply
()
);
BUTTONACT
(
cancel
,
cancel
()
);
BUTTONACT
(
reset
,
reset
()
);
BUTTONACT
(
small
,
setSmall
()
);
...
...
@@ -267,11 +261,16 @@ void PrefsDialog::apply()
/* Delete the other panel in order to force its reload after clicking
on apply - UGLY but will work for now. */
if
(
simple_panel
->
isVisible
()
)
if
(
simple_panel
&&
simple_panel
->
isVisible
()
&&
advanced_panel
)
{
delete
advanced_panel
;
if
(
advanced_panel
->
isVisible
()
)
advanced_panel
=
NULL
;
}
if
(
advanced_panel
&&
advanced_panel
->
isVisible
()
&&
simple_panel
)
{
delete
simple_panel
;
simple_panel
=
NULL
;
}
}
void
PrefsDialog
::
cancel
()
...
...
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