From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1316948-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ACB2F1580B1 for <garchives@archives.gentoo.org>; Mon, 30 Aug 2021 12:58:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C4ADE0936; Mon, 30 Aug 2021 12:58:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4AE0E0936 for <gentoo-commits@lists.gentoo.org>; Mon, 30 Aug 2021 12:58:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A9A7340FFC for <gentoo-commits@lists.gentoo.org>; Mon, 30 Aug 2021 12:58:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 89A638A for <gentoo-commits@lists.gentoo.org>; Mon, 30 Aug 2021 12:58:31 +0000 (UTC) From: "Andreas Sturmlechner" <asturm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org> Message-ID: <1630328300.1d44e1110d380df8df6b397520eecb201fea4d6a.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/konsole/files/, kde-apps/konsole/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/konsole/files/konsole-21.04.3-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch kde-apps/konsole/konsole-21.04.3-r2.ebuild kde-apps/konsole/konsole-21.04.3-r3.ebuild kde-apps/konsole/konsole-21.08.0-r4.ebuild kde-apps/konsole/konsole-21.08.0-r5.ebuild X-VCS-Directories: kde-apps/konsole/ kde-apps/konsole/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 1d44e1110d380df8df6b397520eecb201fea4d6a X-VCS-Branch: master Date: Mon, 30 Aug 2021 12:58:31 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f0c65921-dd74-4e88-a989-7ddf70269301 X-Archives-Hash: 79cc8735b04d5e18aa7deeed7596d052 commit: 1d44e1110d380df8df6b397520eecb201fea4d6a Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Mon Aug 30 12:17:00 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Aug 30 12:58:20 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d44e111 kde-apps/konsole: Only emit empty() in SessionFinished() ...when in TabbedNavigation mode. KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=441206 Closes: https://bugs.gentoo.org/810598 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> ...ionFinished-only-in-TabbedNavigation-mode.patch | 53 ++++++++++++++++++++++ ...21.04.3-r2.ebuild => konsole-21.04.3-r3.ebuild} | 1 + ...21.08.0-r4.ebuild => konsole-21.08.0-r5.ebuild} | 1 + 3 files changed, 55 insertions(+) diff --git a/kde-apps/konsole/files/konsole-21.04.3-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch b/kde-apps/konsole/files/konsole-21.04.3-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch new file mode 100644 index 00000000000..d02846ace5a --- /dev/null +++ b/kde-apps/konsole/files/konsole-21.04.3-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch @@ -0,0 +1,53 @@ +From 2684bc7fa5ac0b740b3e8661c3a0ae0136fde0a7 Mon Sep 17 00:00:00 2001 +From: Ahmad Samir <a.samirh78@gmail.com> +Date: Sun, 22 Aug 2021 20:02:52 +0200 +Subject: [PATCH] Only emit empty() in SessionFinished() when in + TabbedNavigation mode + +empty() is emitted so that MainWindow calls close() and we get rid of the +colours-flashing bug when closing the last session/tab in a window, see +commit bbec72250d080. However all that isn't relevant when we are in +konsole Part mode, where there are no tabs or MainWindows. + +This fixes a crash in Dolphin when closing its window while the embedded +Konsole Part is open. The crash would happen as calling +ViewContainer::currentTabViewCount() would end up in the ViewSplitter code +path, which is no-op in Konsole Part. + +To test: +- Open dolphin, make sure the terminal panel isn't open to begin with +- open the terminal panel +- close the dolphin window while the terminal panel is open + +BUG: 441206 +FIXED-IN: 21.08.1 +--- + src/ViewManager.cpp | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp +index 92d2951fc..2ba77e9f0 100644 +--- a/src/ViewManager.cpp ++++ b/src/ViewManager.cpp +@@ -494,11 +494,13 @@ void ViewManager::sessionFinished() + return; + } + +- // The last session/tab, and only one view (no splits), emit empty() +- // so that close() is called in MainWindow, fixes #432077 +- if (_viewContainer->count() == 1 && _viewContainer->currentTabViewCount() == 1) { +- Q_EMIT empty(); +- return; ++ if (_navigationMethod == TabbedNavigation) { ++ // The last session/tab, and only one view (no splits), emit empty() ++ // so that close() is called in MainWindow, fixes #432077 ++ if (_viewContainer->count() == 1 && _viewContainer->currentTabViewCount() == 1) { ++ Q_EMIT empty(); ++ return; ++ } + } + + auto *session = qobject_cast<Session *>(sender()); +-- +GitLab + diff --git a/kde-apps/konsole/konsole-21.04.3-r2.ebuild b/kde-apps/konsole/konsole-21.04.3-r3.ebuild similarity index 95% rename from kde-apps/konsole/konsole-21.04.3-r2.ebuild rename to kde-apps/konsole/konsole-21.04.3-r3.ebuild index c95192f968c..8ebbdcdf1dd 100644 --- a/kde-apps/konsole/konsole-21.04.3-r2.ebuild +++ b/kde-apps/konsole/konsole-21.04.3-r3.ebuild @@ -54,6 +54,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${P}-no-flash-on-session-close.patch" # bug 807933 "${FILESDIR}/${P}-dont-close-window-while-split.patch" # bug 808510 + "${FILESDIR}/${P}-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch" # bug 810598 ) src_prepare() { diff --git a/kde-apps/konsole/konsole-21.08.0-r4.ebuild b/kde-apps/konsole/konsole-21.08.0-r5.ebuild similarity index 95% rename from kde-apps/konsole/konsole-21.08.0-r4.ebuild rename to kde-apps/konsole/konsole-21.08.0-r5.ebuild index d4600f096a8..22a1835a1ff 100644 --- a/kde-apps/konsole/konsole-21.08.0-r4.ebuild +++ b/kde-apps/konsole/konsole-21.08.0-r5.ebuild @@ -53,6 +53,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-21.04.3-no-flash-on-session-close.patch" # bug 807933 "${FILESDIR}/${PN}-21.04.3-dont-close-window-while-split.patch" # bug 808510 + "${FILESDIR}/${PN}-21.04.3-emit-empty-in-SessionFinished-only-in-TabbedNavigation-mode.patch" # bug 810598 "${FILESDIR}/${P}-fix-crash-w-blur.patch" # bug 807905, fixed in 21.08.1 "${FILESDIR}/${P}-fix-KXmlGUI-toolbars-and-MainWindow-size.patch" # KDE-bugs 430036, 439339 "${FILESDIR}/${P}-fix-MainWindow-size-w-o-saved-size.patch" # KDE-bug 437791