mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Fixed DbCmd_UpdateSearchIndex for headless.
This commit is contained in:
@@ -19,16 +19,20 @@
|
|||||||
|
|
||||||
#include "DatabaseCommand_UpdateSearchIndex.h"
|
#include "DatabaseCommand_UpdateSearchIndex.h"
|
||||||
|
|
||||||
#include "DatabaseImpl.h"
|
|
||||||
#include "TomahawkSqlQuery.h"
|
|
||||||
#include "utils/Logger.h"
|
|
||||||
#include "jobview/IndexingJobItem.h"
|
|
||||||
#include "jobview/JobStatusView.h"
|
|
||||||
#include "jobview/JobStatusModel.h"
|
|
||||||
#include "Source.h"
|
|
||||||
|
|
||||||
#include <QSqlRecord>
|
#include <QSqlRecord>
|
||||||
|
|
||||||
|
#include "DatabaseImpl.h"
|
||||||
|
#include "Source.h"
|
||||||
|
#include "TomahawkSqlQuery.h"
|
||||||
|
#include "jobview/IndexingJobItem.h"
|
||||||
|
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
|
#include "jobview/JobStatusView.h"
|
||||||
|
#include "jobview/JobStatusModel.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
|
||||||
DatabaseCommand_UpdateSearchIndex::DatabaseCommand_UpdateSearchIndex()
|
DatabaseCommand_UpdateSearchIndex::DatabaseCommand_UpdateSearchIndex()
|
||||||
: DatabaseCommand()
|
: DatabaseCommand()
|
||||||
@@ -36,14 +40,18 @@ DatabaseCommand_UpdateSearchIndex::DatabaseCommand_UpdateSearchIndex()
|
|||||||
{
|
{
|
||||||
tLog() << Q_FUNC_INFO << "Updating index.";
|
tLog() << Q_FUNC_INFO << "Updating index.";
|
||||||
|
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
JobStatusView::instance()->model()->addJob( m_statusJob.data() );
|
JobStatusView::instance()->model()->addJob( m_statusJob.data() );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DatabaseCommand_UpdateSearchIndex::~DatabaseCommand_UpdateSearchIndex()
|
DatabaseCommand_UpdateSearchIndex::~DatabaseCommand_UpdateSearchIndex()
|
||||||
{
|
{
|
||||||
if (! m_statusJob.isNull() )
|
#ifndef ENABLE_HEADLESS
|
||||||
|
if ( ! m_statusJob.isNull() )
|
||||||
m_statusJob.data()->done();
|
m_statusJob.data()->done();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user