From: Carsten Niehaus Date: Sun, 24 Jul 2005 17:30:12 +0000 (+0000) Subject: only prepend the string if there is a picture to show X-Git-Tag: v3.4.90~1 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=d816449cec433c33ab5349561586bd144508b669;p=libqmvoc.git only prepend the string if there is a picture to show svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=438236 --- diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 3b5d279..9d126db 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -131,8 +131,8 @@ QValueList Glossary::readItems( QDomDocument &itemDocument ) QDomElement refNode = ( const QDomElement& ) itemElement.namedItem( "references" ).toElement(); QString desc = descNode.toElement().text(); - - desc.prepend("[img]"+picName +"[/img]" ); + if ( !picName.isEmpty() ) + desc.prepend("[img]"+picName +"[/img]" ); item->setName( i18n( nameNode.toElement( ).text().utf8() ) );