[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.4/kdegraphics/kpdf/ui
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2005-08-03 16:11:55
Message-ID: 1123085515.837564.11893.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 442692 by aacid:
Forgot to backport this crash fix from 3.5 branch, sorry about it, will be there on \
KDE 3.4.3 and KDE 3.5.0
BUGS: 110087
BUGS: 110111
M +6 -1 toc.cpp
--- branches/KDE/3.4/kdegraphics/kpdf/ui/toc.cpp #442691:442692
@@ -121,7 +121,12 @@
void TOC::slotExecuted( QListViewItem *i )
{
- const QDomElement & e = static_cast< TOCItem* >( i )->element();
+ TOCItem* tocItem = dynamic_cast<TOCItem*>( i );
+ // that filters clicks on [+] that for a strange reason don't seem to be \
TOCItem* + if (tocItem == NULL)
+ return;
+ const QDomElement & e = tocItem->element();
+
QString externalFileName = e.attribute( "ExternalFileName" );
if ( !externalFileName.isEmpty() )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic