[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4/kdegraphics/kpdf
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2005-05-31 20:22:15
Message-ID: 1117570935.951313.4366.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 420339 by aacid:

Don't crash when receive null qfocusevent *


 M  +0 -2      part.cpp  
 M  +6 -1      ui/minibar.cpp  


--- branches/work/kde4/kdegraphics/kpdf/part.cpp #420338:420339
@@ -790,8 +790,6 @@
         if (width > height) landscape++;
         else portrait++;
     }
-#warning whoever ported Kprinter messed, setOrientation is QPrinted::Orientation not Qt::Orientation
-#warning change it
 //    if (landscape > portrait) printer.setOrientation(KPrinter::Landscape);
 
     if (printer.setup(widget())) doPrint( printer );
--- branches/work/kde4/kdegraphics/kpdf/ui/minibar.cpp #420338:420339
@@ -366,9 +366,14 @@
     // call default handler
     QLineEdit::focusInEvent( e );
 }
-
+#include <kdebug.h>
 void PagesEdit::focusOutEvent( QFocusEvent * e )
 {
+    if (!e)
+    {
+         kdDebug() << "Got a null QFocusEvent, investigate" << endl;
+         return;
+    }
     // change background color to a dark tone
 #warning setLineWidth does not exists in Qt4
 //    setLineWidth( 1 );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic