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