1
0
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:
Leo Franchi 2012-05-23 09:35:25 -04:00
parent a1874a941d
commit c2363e0967
2 changed files with 13 additions and 4 deletions

View File

@ -1233,6 +1233,13 @@ GlobalActionManager::waitingForResolved( bool /* success */ )
}
QString
GlobalActionManager::hostname() const
{
return QString( "http://stage.toma.hk" );
}
/// SPOTIFY URL HANDLING
bool

View File

@ -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 );
}
} */
}
}