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:
parent
22f9eb317b
commit
c5d9d11481
@ -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"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user