diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-02-21 17:38:48 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-02-21 17:46:56 +0100 |
commit | ab36dc80a3fccb864709608b8f89b75299c18931 (patch) | |
tree | b77691a33f5a93cc844d868e35f2b6cc0e06b313 /app-office/ktimetracker/files/ktimetracker-5.0.1-fix-edit-history-dialog-crash.patch | |
parent | sys-auth/polkit-qt: EAPI-8 bump, two upstream backports (diff) | |
download | gentoo-ab36dc80a3fccb864709608b8f89b75299c18931.tar.gz gentoo-ab36dc80a3fccb864709608b8f89b75299c18931.tar.bz2 gentoo-ab36dc80a3fccb864709608b8f89b75299c18931.zip |
app-office/ktimetracker: EAPI-8 bump, several upstream fixes
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=417988
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=424993
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-office/ktimetracker/files/ktimetracker-5.0.1-fix-edit-history-dialog-crash.patch')
-rw-r--r-- | app-office/ktimetracker/files/ktimetracker-5.0.1-fix-edit-history-dialog-crash.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-office/ktimetracker/files/ktimetracker-5.0.1-fix-edit-history-dialog-crash.patch b/app-office/ktimetracker/files/ktimetracker-5.0.1-fix-edit-history-dialog-crash.patch new file mode 100644 index 000000000000..a27b7b6ae4d7 --- /dev/null +++ b/app-office/ktimetracker/files/ktimetracker-5.0.1-fix-edit-history-dialog-crash.patch @@ -0,0 +1,31 @@ +From 065d7c154641f83c46e490cbb5d15b6cff92121b Mon Sep 17 00:00:00 2001 +From: Marc Orcau <budalokko@gmail.com> +Date: Tue, 27 Apr 2021 17:17:18 +0200 +Subject: [PATCH] Fix edit history dialog crash when event has non existent + related entity + +Replaced qFatal() by qCWarning(). Faulty event does not appear on the list then. + +BUG: 424993 +--- + src/dialogs/historydialog.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/dialogs/historydialog.cpp b/src/dialogs/historydialog.cpp +index ca2f10a..458c147 100644 +--- a/src/dialogs/historydialog.cpp ++++ b/src/dialogs/historydialog.cpp +@@ -131,7 +131,9 @@ QString HistoryDialog::listAllEvents() + + const Task *parent = dynamic_cast<Task*>(m_projectModel->tasksModel()->taskByUID(event->relatedTo())); + if (!parent) { +- qFatal("orphan event"); ++ qCWarning(KTT_LOG) << "Unable to load 'relatedTo' entry for " << event->summary(); ++ err = "NoRelatedToForEvent"; ++ continue; + } + + auto *item = new QTableWidgetItem(parent->name()); +-- +GitLab + |