summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
+ }
}
}
}