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

List:       kfm-devel
Subject:    konqueror and no view ? #212586
From:       Martin Koller <kollix () aon ! at>
Date:       2011-05-22 18:25:58
Message-ID: 201105222026.02092.kollix () aon ! at
[Download RAW message or body]


Hi,

in checking bug #212586, I found that konqi could crash in

QString KonqExtendedBookmarkOwner::currentUrl() const
{
   return m_pKonqMainWindow->currentView()->url().url();

if there is the possibility that there is no currentView() yet.
This seems to be the case in this bug:
#5  KonqView::url (this=0x0) at
...

So my question: how can I achieve a test where konqi has no current view yet ?
Or what about just modifying the code to

  return m_pKonqMainWindow->currentView() ? m_pKonqMainWindow->currentView()->url().url() : QString();

?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at

["signature.asc" (application/pgp-signature)]

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

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