mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
* Don't overwrite friendlyname with an empty one.
This commit is contained in:
parent
40248965be
commit
83d48c99aa
@ -249,8 +249,8 @@ DatabaseCommand_SetDynamicPlaylistRevision::exec( DatabaseImpl* lib )
|
||||
|
||||
controlsQuery.exec();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( m_applied )
|
||||
{
|
||||
tLog() << "updating dynamic playlist, optimistic locking okay";
|
||||
|
@ -146,6 +146,9 @@ Source::avatar( AvatarStyle style ) const
|
||||
void
|
||||
Source::setFriendlyName( const QString& fname )
|
||||
{
|
||||
if ( fname.isEmpty() )
|
||||
return;
|
||||
|
||||
m_friendlyname = fname;
|
||||
if ( m_scrubFriendlyName )
|
||||
m_friendlyname = m_friendlyname.split( "@" ).first();
|
||||
|
Loading…
x
Reference in New Issue
Block a user