don't re-fail if we've already failed; this allows scripts to set error messages nicely when init() gos *bang*

svn path=/trunk/KDE/kdelibs/; revision=1047340
This commit is contained in:
Aaron J. Seigo 2009-11-11 01:54:00 +00:00
parent 22f9eb317b
commit c5d9d11481

View File

@ -218,7 +218,8 @@ void Applet::init()
if (d->package) {
d->setupScriptSupport();
}
if (!d->script->init()) {
if (!d->script->init() && !d->failed) {
setFailedToLaunch(true, i18n("Script initialization failed"));
}
}