[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Thu Mar 31 18:23:22 CEST 2005
CVS commit by staikos:
fix crash of konsole part. when it emits the signal, we can't delete it because
it has intentions of deleting itself
M +5 -0 js.cpp 1.19
M +1 -0 js.h 1.10
--- kdeextragear-2/kst/kst/extensions/js/js.cpp #1.18:1.19
@@ -151,4 +151,9 @@ void KstJS::shellExited() {
_showAction->setText(i18n("Show &JavaScript Console"));
_konsolePart = 0L;
+ QTimer::singleShot(0, this, SLOT(restoreUI())); // konsole crashes otherwise
+}
+
+
+void KstJS::restoreUI() {
if (_oldCentralWidget) {
_oldCentralWidget->reparent(app(), QPoint(0, 0));
--- kdeextragear-2/kst/kst/extensions/js/js.h #1.9:1.10
@@ -59,4 +59,5 @@ class KstJS : public KstExtension, publi
private slots:
void shellExited();
+ void restoreUI();
private:
More information about the Kst
mailing list