mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Fixed DbCmd_UpdateSearchIndex for headless.
This commit is contained in:
parent
eecf2c38d2
commit
e9a1157e00
@ -19,16 +19,20 @@
|
||||
|
||||
#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 "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()
|
||||
@ -36,14 +40,18 @@ DatabaseCommand_UpdateSearchIndex::DatabaseCommand_UpdateSearchIndex()
|
||||
{
|
||||
tLog() << Q_FUNC_INFO << "Updating index.";
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
JobStatusView::instance()->model()->addJob( m_statusJob.data() );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
DatabaseCommand_UpdateSearchIndex::~DatabaseCommand_UpdateSearchIndex()
|
||||
{
|
||||
if (! m_statusJob.isNull() )
|
||||
#ifndef ENABLE_HEADLESS
|
||||
if ( ! m_statusJob.isNull() )
|
||||
m_statusJob.data()->done();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user