Commit 02f8c022 authored by Boudewijn Rempt's avatar Boudewijn Rempt

fix sig/slot for sigImageModified

parent 1f451cfb
......@@ -318,7 +318,7 @@ bool KisDoc2::completeLoading(KoStore *store)
setModified(false);
m_d->shapeController->setImage(m_d->image);
connect(m_d->image.data(), SIGNAL(sigImageModified()), this, SLOT(setModified(bool)));
connect(m_d->image.data(), SIGNAL(sigImageModified()), this, SLOT(setImageModified()));
emit sigLoadingFinished();
......@@ -361,7 +361,7 @@ bool KisDoc2::newImage(const QString& name,
image = new KisImage(createUndoStore(), width, height, cs, name);
Q_CHECK_PTR(image);
connect(image.data(), SIGNAL(sigImageModified()), this, SLOT(setModified(bool)));
connect(image.data(), SIGNAL(sigImageModified()), this, SLOT(setImageModified()));
image->setResolution(imageResolution, imageResolution);
image->assignImageProfile(cs->profile());
......@@ -486,7 +486,7 @@ void KisDoc2::setCurrentImage(KisImageWSP image)
setModified(false);
connect(m_d->image, SIGNAL(sigImageModified()), this, SLOT(setModified(bool)));
connect(m_d->image, SIGNAL(sigImageModified()), this, SLOT(setsetImageModified()));
emit sigLoadingFinished();
}
......@@ -498,6 +498,11 @@ void KisDoc2::initEmpty()
newImage("", cfg.defImageWidth(), cfg.defImageHeight(), rgb);
}
void KisDoc2::setImageModified()
{
setModified(true);
}
KisUndoStore* KisDoc2::createUndoStore()
{
......
......@@ -97,6 +97,8 @@ public slots:
*/
virtual void initEmpty();
void setImageModified();
public:
/**
......
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