mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Correct open in file manager for all states.
This commit is contained in:
@@ -141,6 +141,10 @@ PlaylistItemDelegate::createEditor( QWidget* parent, const QStyleOptionViewItem&
|
|||||||
{
|
{
|
||||||
QDesktopServices::openUrl( QUrl::fromLocalFile( QFileInfo( DownloadManager::instance()->localFileForDownload( item->result()->downloadFormats().first().url.toString() ) ).absolutePath() ) );
|
QDesktopServices::openUrl( QUrl::fromLocalFile( QFileInfo( DownloadManager::instance()->localFileForDownload( item->result()->downloadFormats().first().url.toString() ) ).absolutePath() ) );
|
||||||
}
|
}
|
||||||
|
else if ( index.column() == PlayableModel::Download && item->result() && item->result()->downloadJob() && item->result()->downloadJob()->state() == DownloadJob::Finished )
|
||||||
|
{
|
||||||
|
QDesktopServices::openUrl( QUrl::fromLocalFile( QFileInfo( item->result()->downloadJob()->localFile() ).absolutePath() ) );
|
||||||
|
}
|
||||||
else if ( index.column() == PlayableModel::Download && item->result() &&
|
else if ( index.column() == PlayableModel::Download && item->result() &&
|
||||||
!item->result()->downloadFormats().isEmpty() && !item->result()->downloadJob() )
|
!item->result()->downloadFormats().isEmpty() && !item->result()->downloadJob() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user