diff options
-rw-r--r-- | kviewshell/kviewpart.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/kviewshell/kviewpart.cpp b/kviewshell/kviewpart.cpp index cc8f8b2f..a66150d4 100644 --- a/kviewshell/kviewpart.cpp +++ b/kviewshell/kviewpart.cpp @@ -1471,16 +1471,20 @@ void KViewPart::preferencesChanged() void KViewPart::partActivateEvent( KParts::PartActivateEvent *ev ) { - TQApplication::sendEvent( multiPage, ev ); + if (!multiPage.isNull()) + { + TQApplication::sendEvent( multiPage, ev ); + } } - void KViewPart::guiActivateEvent( KParts::GUIActivateEvent *ev ) { - TQApplication::sendEvent( multiPage, ev ); + if (!multiPage.isNull()) + { + TQApplication::sendEvent( multiPage, ev ); + } } - void KViewPart::slotEnableMoveTool(bool enable) { // Safety Check |