summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/app
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 20:51:12 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 20:51:12 -0500
commit5e3618366d86220c66e38d764aa80db1314ceabc (patch)
treec12e05107bd40419934da71651765e232f9bdee6 /clients/tde/src/app
parent1b1ebb5f661f6199ca77d63e729f2c73f1de0c18 (diff)
downloadulab-5e3618366d86220c66e38d764aa80db1314ceabc.tar.gz
ulab-5e3618366d86220c66e38d764aa80db1314ceabc.zip
Fix crash when part not loaded
Diffstat (limited to 'clients/tde/src/app')
-rw-r--r--clients/tde/src/app/views/instrumentview.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/clients/tde/src/app/views/instrumentview.cpp b/clients/tde/src/app/views/instrumentview.cpp
index e9f3f51..dc4e3ad 100644
--- a/clients/tde/src/app/views/instrumentview.cpp
+++ b/clients/tde/src/app/views/instrumentview.cpp
@@ -45,7 +45,7 @@ void InstrumentView::init() {
KLibFactory *factory = KLibLoader::self()->factory(m_libraryName.ascii());
if (!factory) {
- KMessageBox::error( this, i18n("TDE could not find the %1 Part, or the Remote Laboratory Communications Analyzer Part could not be started. Did you make install?").arg(m_libraryName) );
+ KMessageBox::error( this, i18n("TDE could not find the %1 part, or the %2 part could not be started.").arg(m_libraryName).arg(m_libraryName) );
TQTimer::singleShot(0, this, SLOT(close()));
}
else {
@@ -62,11 +62,13 @@ void InstrumentView::init() {
}
bool InstrumentView::eventFilter(TQObject *o, TQEvent *e) {
- TQWidget *childPartWidget = m_instrumentPart->widget();
- if (childPartWidget) {
- if (o == childPartWidget) {
- if ((e->type() == TQEvent::Resize) || (e->type() == TQEvent::LayoutHint)) {
- setChildSizeData();
+ if (m_instrumentPart) {
+ TQWidget *childPartWidget = m_instrumentPart->widget();
+ if (childPartWidget) {
+ if (o == childPartWidget) {
+ if ((e->type() == TQEvent::Resize) || (e->type() == TQEvent::LayoutHint)) {
+ setChildSizeData();
+ }
}
}
}