fixed #2265
This commit is contained in:
parent
091e9dfcf5
commit
43d8dd6ea3
|
@ -662,8 +662,8 @@ GLiveSupport :: changeLanguage(Ptr<const std::string>::Ref locale)
|
|||
*----------------------------------------------------------------------------*/
|
||||
bool
|
||||
LiveSupport :: GLiveSupport ::
|
||||
GLiveSupport :: login(const std::string & login,
|
||||
const std::string & password) throw ()
|
||||
GLiveSupport :: login(const std::string & login,
|
||||
const std::string & password) throw ()
|
||||
{
|
||||
try {
|
||||
sessionId = authentication->login(login, password);
|
||||
|
@ -671,6 +671,8 @@ GLiveSupport :: login(const std::string & login,
|
|||
return false;
|
||||
}
|
||||
|
||||
userName.reset(new Glib::ustring(login));
|
||||
|
||||
Ptr<const Glib::ustring>::Ref editedPlaylistToken;
|
||||
Ptr<const std::string>::Ref editedPlaylistTokenString;
|
||||
try {
|
||||
|
@ -1118,6 +1120,7 @@ GLiveSupport :: openPlaylistForEditing(Ptr<const UniqueId>::Ref playlistId)
|
|||
}
|
||||
|
||||
editedPlaylist = storage->editPlaylist(sessionId, playlistId);
|
||||
editedPlaylist->setMetadata(userName, "dc:creator");
|
||||
|
||||
try {
|
||||
Ptr<const Glib::ustring>::Ref editToken(new const Glib::ustring(
|
||||
|
|
|
@ -202,7 +202,12 @@ class GLiveSupport : public LocalizedConfigurable,
|
|||
Ptr<AudioPlayerInterface>::Ref cuePlayer;
|
||||
|
||||
/**
|
||||
* The session id for the user.
|
||||
* The user id for the logged-in user.
|
||||
*/
|
||||
Ptr<Glib::ustring>::Ref userName;
|
||||
|
||||
/**
|
||||
* The session id for the logged-in user.
|
||||
*/
|
||||
Ptr<SessionId>::Ref sessionId;
|
||||
|
||||
|
|
Loading…
Reference in New Issue