summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/karamba.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-10-14 18:20:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-11-10 18:40:47 +0900
commit5dab6232ef3b3715630cf88eb40c4c6021e65f07 (patch)
treee3938446c1aa5e80685f911aac73ebc1fc9832a8 /superkaramba/src/karamba.cpp
parent2e211499d4ffb2b89618ec79915f543cd898d2ab (diff)
downloadtdeutils-5dab6232ef3b3715630cf88eb40c4c6021e65f07.tar.gz
tdeutils-5dab6232ef3b3715630cf88eb40c4c6021e65f07.zip
superkaramba: fixed SEGV when loading python scripts.
This resolves issue #43. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'superkaramba/src/karamba.cpp')
-rw-r--r--superkaramba/src/karamba.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/superkaramba/src/karamba.cpp b/superkaramba/src/karamba.cpp
index 19b30b5..f9e3e76 100644
--- a/superkaramba/src/karamba.cpp
+++ b/superkaramba/src/karamba.cpp
@@ -310,7 +310,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
move(xpos, ypos);
}
- haveUpdated = 0;
+ haveUpdated = false;
this->setMouseTracking(true);
@@ -1691,14 +1691,13 @@ void karamba::step()
if (pythonIface && pythonIface->isExtensionLoaded())
{
- if (haveUpdated == 0)
+ if (!haveUpdated)
pythonIface->initWidget(this);
else
pythonIface->widgetUpdated(this);
}
- if (haveUpdated == 0)
- haveUpdated = 1;
+ haveUpdated = true;
}
void karamba::widgetClosed()