Commit 54983397 authored by Boudewijn Rempt's avatar Boudewijn Rempt

fix krita to work correctly with the new updater architecture

svn path=/trunk/koffice/; revision=950937
parent 86a5ad82
......@@ -51,9 +51,11 @@
struct KisFilterHandler::Private {
Private()
: view(0)
, manager(0)
, lastConfiguration(0) {
: view(0)
, manager(0)
, lastConfiguration(0)
, updater( 0 )
{
}
~Private() {
......@@ -74,9 +76,6 @@ KisFilterHandler::KisFilterHandler(KisFilterManager* parent, KisFilterSP f, KisV
m_d->filter = f;
m_d->view = view;
m_d->manager = parent;
m_d->updater = new KoProgressUpdater(m_d->view->statusBar()->progress());
}
KisFilterHandler::~KisFilterHandler()
......@@ -148,6 +147,10 @@ void KisFilterHandler::apply(KisNodeSP layer, KisFilterConfiguration* config)
}
KisTransaction * cmd = 0;
if ( m_d->updater == 0 ) {
m_d->updater = new KoProgressUpdater(m_d->view->statusBar()->progress());
}
// also deletes all old updaters
m_d->updater->start( 100, filter->name() );
......
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