check if d->frames is empty
BUG:235851 svn path=/trunk/KDE/kdelibs/; revision=1126216
This commit is contained in:
parent
cb6d3b581a
commit
a918cc5af7
@ -78,6 +78,10 @@ void FrameSvg::setEnabledBorders(const EnabledBorders borders)
|
|||||||
|
|
||||||
FrameSvg::EnabledBorders FrameSvg::enabledBorders() const
|
FrameSvg::EnabledBorders FrameSvg::enabledBorders() const
|
||||||
{
|
{
|
||||||
|
if (d->frames.isEmpty()) {
|
||||||
|
return NoBorder;
|
||||||
|
}
|
||||||
|
|
||||||
QHash<QString, FrameData*>::const_iterator it = d->frames.constFind(d->prefix);
|
QHash<QString, FrameData*>::const_iterator it = d->frames.constFind(d->prefix);
|
||||||
|
|
||||||
if (it != d->frames.constEnd()) {
|
if (it != d->frames.constEnd()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user