only emit repaintNeeded if there was actually a change
This commit is contained in:
parent
7f4bd841e2
commit
9da79a0840
7
svg.cpp
7
svg.cpp
@ -784,9 +784,10 @@ void Svg::setImagePath(const QString &svgFilePath)
|
||||
return;
|
||||
}
|
||||
|
||||
d->setImagePath(svgFilePath);
|
||||
//kDebug() << "repaintNeeded";
|
||||
emit repaintNeeded();
|
||||
if (d->setImagePath(svgFilePath)) {
|
||||
//kDebug() << "repaintNeeded";
|
||||
emit repaintNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
QString Svg::imagePath() const
|
||||
|
Loading…
Reference in New Issue
Block a user