easier to scan

svn path=/trunk/KDE/kdelibs/; revision=1158866
This commit is contained in:
Aaron J. Seigo 2010-08-04 00:59:09 +00:00
parent b968f22439
commit c42a1e3d78

View File

@ -667,9 +667,7 @@ DataEngine *Applet::dataEngine(const QString &name) const
{
if (!d->remoteLocation.isEmpty()) {
return d->remoteDataEngine(KUrl(d->remoteLocation), name);
}
if (!package() || package()->metadata().remoteLocation().isEmpty()) {
} else if (!package() || package()->metadata().remoteLocation().isEmpty()) {
return d->dataEngine(name);
} else {
return d->remoteDataEngine(KUrl(package()->metadata().remoteLocation()), name);