[Kst] branches/work/kst/1.5/kst/src/extensions/js

Andrew Walker arwalker at sumusltd.com
Thu Apr 12 22:06:36 CEST 2007


SVN commit 653187 by arwalker:

CCBUG:143854 Set the 'Show JavaScript Console' toggle state appropriately if we failed to create the part

 M  +2 -0      js.cpp  


--- branches/work/kst/1.5/kst/src/extensions/js/js.cpp #653186:653187
@@ -238,6 +238,7 @@
     KLibFactory *f = KLibLoader::self()->factory("libkonsolepart");
     if (!f) {
       KMessageBox::sorry(app(), i18n("Could not load konsole part.  Please install kdebase."));
+      _showAction->setChecked(false);
       return;
     }
 
@@ -252,6 +253,7 @@
     KParts::Part *p = dynamic_cast<KParts::Part*>(f->create(_splitter, "kstcmd"));
     if (!p) {
       KMessageBox::sorry(app(), i18n("Konsole part appears to be incompatible.  Please install kdebase correctly."));
+      _showAction->setChecked(false);
       return;
     }
 


More information about the Kst mailing list