D14711: Fix crash during download when the main window have been closed

Christophe CURIS noreply at phabricator.kde.org
Thu Aug 9 19:23:10 BST 2018


chcuris created this revision.
chcuris added a reviewer: Falkon.
chcuris added a project: Falkon.
Restricted Application added a subscriber: falkon.
chcuris requested review of this revision.

REVISION SUMMARY
  Falkon has a feature to automatically close the tab that was specifically
  opened for the file to download, because this kind of tab has no useful
  purpose to the user.
  
  In the case where the main window would have been closed, Falkon
  would crash de-referencing the now NULL pointer to the main window.
  
  This patch adds a simple check to do nothing in this case, as there is no
  tab to close anyway.

REPOSITORY
  R875 Falkon

REVISION DETAIL
  https://phabricator.kde.org/D14711

AFFECTED FILES
  src/lib/downloads/downloadmanager.cpp

To: chcuris, #falkon
Cc: falkon, #falkon, herrold, anmolgautam, SGOrava, iodelay, spoorun, ptabis, navarromorales, cochise, clivej, ach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/falkon/attachments/20180809/2ef79cba/attachment.html>


More information about the Falkon mailing list