Commit 7234febc authored by Thomas Zander's avatar Thomas Zander

Fix crash due deleting myself from the wrong place; if I place the

delete on the eventQueue, then there is no guarentee that it happens
after my own event is executed on the main thread.

svn path=/trunk/koffice/; revision=689020
parent ff4f2cc7
......@@ -57,7 +57,6 @@ void ActionJob::run() {
QCoreApplication::postEvent(this, new ActionJobEvent());
m_semaphore.acquire();
}
deleteLater();
}
bool ActionJob::event(QEvent *e) {
......@@ -65,6 +64,7 @@ bool ActionJob::event(QEvent *e) {
if(event) {
m_action->doActionUi(m_params);
m_semaphore.release();
deleteLater();
return true;
}
return QObject::event(e);
......
......@@ -19,7 +19,6 @@
#include "KoAction.h"
#include "KoJobsListPolicy.h"
#include "KoExecutePolicy.h"
#include "ActionJob_p.h"
#include <threadweaver/WeaverInterface.h>
......
Markdown is supported
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