Remove special deletion of objects in threads.

Fixes #5250
This commit is contained in:
John Maguire 2016-02-11 16:31:08 +00:00
parent 729dc8e281
commit d06f337ade
2 changed files with 0 additions and 6 deletions

View File

@ -126,10 +126,6 @@ Application::~Application() {
// thread, including some device library backends.
device_manager_.reset();
for (QObject* object : objects_in_threads_) {
object->deleteLater();
}
for (QThread* thread : threads_) {
thread->quit();
}
@ -151,7 +147,6 @@ void Application::MoveToNewThread(QObject* object) {
void Application::MoveToThread(QObject* object, QThread* thread) {
object->setParent(nullptr);
object->moveToThread(thread);
objects_in_threads_ << object;
}
void Application::AddError(const QString& message) { emit ErrorAdded(message); }

View File

@ -149,7 +149,6 @@ signals:
Lazy<NetworkRemoteHelper> network_remote_helper_;
Lazy<Scrobbler> scrobbler_;
QList<QObject*> objects_in_threads_;
QList<QThread*> threads_;
};