summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-06-03 19:00:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-06-03 19:00:45 +0900
commite3acb2b194f5757bbed406ad4f6695e354e88aab (patch)
treed3b82f554349ad432745188f8710ea4ff189aa12
parent8a775919387bc47e100a780307e6c6f7c753d01a (diff)
downloadtdegraphics-e3acb2b194f5757bbed406ad4f6695e354e88aab.tar.gz
tdegraphics-e3acb2b194f5757bbed406ad4f6695e354e88aab.zip
Fixed kdvi "TQApplication::notify: Unexpected null receiver" warning message at startup. This resolves bug 1891.
-rw-r--r--kviewshell/kviewpart.cpp12
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