Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
a40b903f
Commit
a40b903f
authored
Dec 19, 2007
by
Jean-Baptiste Kempf
Browse files
Qt4 - Preferences, lastfm fix.
parent
56e6a84d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/simple_preferences.cpp
View file @
a40b903f
...
...
@@ -253,17 +253,20 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
updateAudioOptions
(
ui
.
outputModule
->
currentIndex
()
);
/* LastFM */
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
lastfm_user_edit
);
CONFIG_GENERIC
(
"lastfm-password"
,
String
,
ui
.
lastfm_pass_label
,
lastfm_pass_edit
);
if
(
config_ExistIntf
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
)
)
ui
.
lastfm
->
setCheckState
(
Qt
::
Checked
);
else
ui
.
lastfm
->
setCheckState
(
Qt
::
Unchecked
);
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
if
(
module_Exists
(
p_intf
,
"Audioscrobbler"
)
)
{
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
lastfm_user_edit
);
CONFIG_GENERIC
(
"lastfm-password"
,
String
,
ui
.
lastfm_pass_label
,
lastfm_pass_edit
);
if
(
config_ExistIntf
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
)
)
ui
.
lastfm
->
setCheckState
(
Qt
::
Checked
);
else
ui
.
lastfm
->
setCheckState
(
Qt
::
Unchecked
);
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
}
/* Normalizer */
...
...
Write
Preview
Supports
Markdown
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