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
0aef10fe
Commit
0aef10fe
authored
Jul 18, 2010
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Jul 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Open disc: Reset path when changing disc mode.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
cd117a88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+8
-12
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+8
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
0aef10fe
...
...
@@ -329,9 +329,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
psz_cddadiscpath
=
var_InheritString
(
p_intf
,
"cd-audio"
);
/* State to avoid overwritting the users changes with the configuration */
b_firstdvd
=
true
;
b_firstvcd
=
true
;
b_firstcdda
=
true
;
m_discType
=
None
;
ui
.
browseDiscButton
->
setToolTip
(
qtr
(
I_DEVICE_TOOLTIP
));
ui
.
deviceCombo
->
setToolTip
(
qtr
(
I_DEVICE_TOOLTIP
)
);
...
...
@@ -391,9 +389,7 @@ void DiscOpenPanel::clear()
ui
.
chapterSpin
->
setValue
(
0
);
ui
.
subtitlesSpin
->
setValue
(
-
1
);
ui
.
audioSpin
->
setValue
(
-
1
);
b_firstcdda
=
true
;
b_firstdvd
=
true
;
b_firstvcd
=
true
;
m_discType
=
None
;
}
#ifdef WIN32
...
...
@@ -410,10 +406,10 @@ void DiscOpenPanel::updateButtons()
{
if
(
ui
.
dvdRadioButton
->
isChecked
()
)
{
if
(
b_firstd
vd
)
if
(
m_discType
!=
D
vd
)
{
setDrive
(
psz_dvddiscpath
);
b_firstdvd
=
false
;
m_discType
=
Dvd
;
}
ui
.
titleLabel
->
setText
(
qtr
(
"Title"
)
);
ui
.
chapterLabel
->
show
();
...
...
@@ -423,10 +419,10 @@ void DiscOpenPanel::updateButtons()
}
else
if
(
ui
.
vcdRadioButton
->
isChecked
()
)
{
if
(
b_firstv
cd
)
if
(
m_discType
!=
V
cd
)
{
setDrive
(
psz_vcddiscpath
);
b_firstvcd
=
false
;
m_discType
=
Vcd
;
}
ui
.
titleLabel
->
setText
(
qtr
(
"Entry"
)
);
ui
.
chapterLabel
->
hide
();
...
...
@@ -436,10 +432,10 @@ void DiscOpenPanel::updateButtons()
}
else
/* CDDA */
{
if
(
b_firstc
dda
)
if
(
m_discType
!=
C
dda
)
{
setDrive
(
psz_cddadiscpath
);
b_firstcdda
=
false
;
m_discType
=
Cdda
;
}
ui
.
titleLabel
->
setText
(
qtr
(
"Track"
)
);
ui
.
chapterLabel
->
hide
();
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
0aef10fe
...
...
@@ -161,6 +161,13 @@ public:
class
DiscOpenPanel
:
public
OpenPanel
{
Q_OBJECT
enum
DiscType
{
None
,
Dvd
,
Vcd
,
Cdda
};
public:
DiscOpenPanel
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
DiscOpenPanel
();
...
...
@@ -169,7 +176,7 @@ public:
private:
Ui
::
OpenDisk
ui
;
char
*
psz_dvddiscpath
,
*
psz_vcddiscpath
,
*
psz_cddadiscpath
;
bool
b_firstdvd
,
b_firstvcd
,
b_firstcdda
;
DiscType
m_discType
;
public
slots
:
virtual
void
updateMRL
()
;
private
slots
:
...
...
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