Commit deaec493 authored by Leandro Melo's avatar Leandro Melo Committed by Leandro T. C. Melo
Browse files

Gen. highlihter: Connect before calling setFuture

Change-Id: I767896ea686621a9c22aae299a927d6b86b9abeb
Reviewed-on: http://codereview.qt-project.org/5685

Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 2fa1a2fb
......@@ -316,8 +316,8 @@ void Manager::registerMimeTypes()
ManagerProcessor *processor = new ManagerProcessor;
QFuture<QPair<RegisterData, QList<Core::MimeType> > > future =
QtConcurrent::run(&ManagerProcessor::process, processor);
m_registeringWatcher.setFuture(future);
connect(&m_registeringWatcher, SIGNAL(finished()), processor, SLOT(deleteLater()));
m_registeringWatcher.setFuture(future);
Core::ICore::instance()->progressManager()->addTask(future,
tr("Registering definitions"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment