diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-06-03 19:00:45 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-06-03 19:00:45 +0900 |
commit | e3acb2b194f5757bbed406ad4f6695e354e88aab (patch) | |
tree | d3b82f554349ad432745188f8710ea4ff189aa12 /kviewshell | |
parent | 8a775919387bc47e100a780307e6c6f7c753d01a (diff) | |
download | tdegraphics-e3acb2b194f5757bbed406ad4f6695e354e88aab.tar.gz tdegraphics-e3acb2b194f5757bbed406ad4f6695e354e88aab.zip |
Fixed kdvi "TQApplication::notify: Unexpected null receiver" warning message at startup. This resolves bug 1891.
Diffstat (limited to 'kviewshell')
-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 |