mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Added temporary status message for incoming suggestions.
This commit is contained in:
@@ -24,6 +24,9 @@
|
|||||||
#include "network/Servent.h"
|
#include "network/Servent.h"
|
||||||
#include "ViewManager.h"
|
#include "ViewManager.h"
|
||||||
#include "playlist/InboxModel.h"
|
#include "playlist/InboxModel.h"
|
||||||
|
#include "jobview/JobStatusView.h"
|
||||||
|
#include "jobview/JobStatusModel.h"
|
||||||
|
#include "jobview/ErrorStatusMessage.h"
|
||||||
|
|
||||||
DatabaseCommand_ShareTrack::DatabaseCommand_ShareTrack( QObject* parent )
|
DatabaseCommand_ShareTrack::DatabaseCommand_ShareTrack( QObject* parent )
|
||||||
: DatabaseCommandLoggable( parent )
|
: DatabaseCommandLoggable( parent )
|
||||||
@@ -102,6 +105,13 @@ DatabaseCommand_ShareTrack::postCommitHook()
|
|||||||
Qt::QueuedConnection,
|
Qt::QueuedConnection,
|
||||||
Q_ARG( const Tomahawk::query_ptr&, m_query ),
|
Q_ARG( const Tomahawk::query_ptr&, m_query ),
|
||||||
Q_ARG( int, 0 ) /*row*/ );
|
Q_ARG( int, 0 ) /*row*/ );
|
||||||
|
|
||||||
|
//TODO: replace with a proper JobStatusItem
|
||||||
|
if( ViewManager::instance()->currentPage() != ViewManager::instance()->inboxWidget() )
|
||||||
|
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( tr( "%1 recommended %2 by %3" )
|
||||||
|
.arg( source()->friendlyName() )
|
||||||
|
.arg( m_query->track() )
|
||||||
|
.arg( m_query->artist() ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user