Proposal: Avoid "Do not delete object, 'KRun::timer' during its event handler!" warning

Jarosław Staniek js at iidea.pl
Wed Mar 26 12:59:19 GMT 2008


We have the following warning because of callin 'delete this' in 
KRun::slotTimeout():

  warning: QObject: Do not delete object, 'KRun::timer', during its event
  handler!

Is there any reason I shouldn't propose turning KRun::KRunPrivate::m_timer 
into QTimer* and call deleteLater()?

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)




More information about the kde-core-devel mailing list