mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Don't create JobStatusItem in DatabaseCommand.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2010-2013, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2014, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2012 Leo Franchi <lfranchi@kde.org>
|
||||
*
|
||||
* Tomahawk is free software: you can redistribute it and/or modify
|
||||
@@ -26,9 +26,6 @@
|
||||
#include "TomahawkSqlQuery.h"
|
||||
|
||||
#include "fuzzyindex/DatabaseFuzzyIndex.h"
|
||||
#include "jobview/IndexingJobItem.h"
|
||||
#include "jobview/JobStatusView.h"
|
||||
#include "jobview/JobStatusModel.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
namespace Tomahawk
|
||||
@@ -36,22 +33,14 @@ namespace Tomahawk
|
||||
|
||||
DatabaseCommand_UpdateSearchIndex::DatabaseCommand_UpdateSearchIndex()
|
||||
: DatabaseCommand()
|
||||
, m_statusJob( new IndexingJobItem )
|
||||
{
|
||||
tLog() << Q_FUNC_INFO << "Updating index.";
|
||||
|
||||
JobStatusView::addJob( m_statusJob );
|
||||
tDebug() << Q_FUNC_INFO << "Updating index.";
|
||||
}
|
||||
|
||||
|
||||
DatabaseCommand_UpdateSearchIndex::~DatabaseCommand_UpdateSearchIndex()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
|
||||
if ( ! m_statusJob.isNull() )
|
||||
{
|
||||
m_statusJob.data()->done();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -23,8 +23,6 @@
|
||||
#include "DllMacro.h"
|
||||
#include <QPointer>
|
||||
|
||||
class IndexingJobItem;
|
||||
|
||||
namespace Tomahawk
|
||||
{
|
||||
|
||||
@@ -47,9 +45,6 @@ public:
|
||||
virtual QString commandname() const { return "updatesearchindex"; }
|
||||
virtual bool doesMutates() const { return true; }
|
||||
virtual void exec( DatabaseImpl* db );
|
||||
|
||||
private:
|
||||
QPointer<IndexingJobItem> m_statusJob;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user