mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Enable stage playlist exporting
rename
This commit is contained in:
parent
a1874a941d
commit
c2363e0967
@ -1233,6 +1233,13 @@ GlobalActionManager::waitingForResolved( bool /* success */ )
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
GlobalActionManager::hostname() const
|
||||
{
|
||||
return QString( "http://stage.toma.hk" );
|
||||
}
|
||||
|
||||
|
||||
/// SPOTIFY URL HANDLING
|
||||
|
||||
bool
|
||||
|
@ -227,7 +227,7 @@ SourceTreeView::setupMenus()
|
||||
}
|
||||
|
||||
if ( type == SourcesModel::StaticPlaylist )
|
||||
copyPlaylistAction->setText( tr( "&Export Playlist" ) );
|
||||
copyPlaylistAction->setText( tr( "&Copy Playlist Link" ) );
|
||||
|
||||
connect( loadPlaylistAction, SIGNAL( triggered() ), SLOT( loadPlaylist() ) );
|
||||
connect( renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
|
||||
@ -398,8 +398,10 @@ SourceTreeView::copyPlaylistLink()
|
||||
else if ( type == SourcesModel::StaticPlaylist )
|
||||
{
|
||||
// Disable toma.hk playlist mode until ready
|
||||
// GlobalActionManager::instance()->getShortLink( playlist );
|
||||
|
||||
PlaylistItem* item = itemFromIndex< PlaylistItem >( m_contextMenuIndex );
|
||||
playlist_ptr playlist = item->playlist();
|
||||
GlobalActionManager::instance()->getShortLink( playlist );
|
||||
/*
|
||||
PlaylistItem* item = itemFromIndex< PlaylistItem >( m_contextMenuIndex );
|
||||
playlist_ptr playlist = item->playlist();
|
||||
|
||||
@ -411,7 +413,7 @@ SourceTreeView::copyPlaylistLink()
|
||||
QFileInfo playlistAbsoluteFilePath = filename;
|
||||
TomahawkSettings::instance()->setPlaylistDefaultPath( playlistAbsoluteFilePath.absolutePath() );
|
||||
GlobalActionManager::instance()->savePlaylistToFile( playlist, filename );
|
||||
}
|
||||
} */
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user