Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2018 21:51:55 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r471825 - in head/finance/kmymoney: . files
Message-ID:  <201806052151.w55LptHi037220@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Tue Jun  5 21:51:55 2018
New Revision: 471825
URL: https://svnweb.freebsd.org/changeset/ports/471825

Log:
  Fix crash when editing or adding new transactions
  
  PR:		228752
  Submitted by:	Peter <fbsdq@peterk.org>
  Obtained from:	https://bugs.kde.org/show_bug.cgi?id=392735

Added:
  head/finance/kmymoney/files/patch-kmymoney_widgets_qwidgetcontainer.cpp   (contents, props changed)
Deleted:
  head/finance/kmymoney/files/patch-kmymoney_dialogs_transactioneditor.cpp
Modified:
  head/finance/kmymoney/Makefile

Modified: head/finance/kmymoney/Makefile
==============================================================================
--- head/finance/kmymoney/Makefile	Tue Jun  5 21:47:53 2018	(r471824)
+++ head/finance/kmymoney/Makefile	Tue Jun  5 21:51:55 2018	(r471825)
@@ -2,6 +2,7 @@
 
 PORTNAME=	kmymoney
 PORTVERSION=	5.0.1
+PORTREVISION=	1
 CATEGORIES=	finance kde
 MASTER_SITES=	KDE/stable/${PORTNAME}/${PORTVERSION}/src
 

Added: head/finance/kmymoney/files/patch-kmymoney_widgets_qwidgetcontainer.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/finance/kmymoney/files/patch-kmymoney_widgets_qwidgetcontainer.cpp	Tue Jun  5 21:51:55 2018	(r471825)
@@ -0,0 +1,19 @@
+Fix crash when editing transactions
+https://bugs.kde.org/show_bug.cgi?id=392735
+
+--- kmymoney/widgets/qwidgetcontainer.cpp.orig	2018-03-18 15:55:30 UTC
++++ kmymoney/widgets/qwidgetcontainer.cpp
+@@ -51,9 +51,10 @@ void QWidgetContainer::removeOrphans()
+     if ((*it_w) && (*it_w)->parent())
+       ++it_w;
+     else {
+-      delete(*it_w);
+-      remove(it_w.key());
+-      it_w = begin();
++      QWidget* const w = *it_w;
++      it_w = erase(it_w);
++      if (w)
++        w->deleteLater();
+     }
+   }
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806052151.w55LptHi037220>