[chronojump] On delete session, currentPerson = null (fixes crash if encoder analyze was opened and we go to mode
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On delete session, currentPerson = null (fixes crash if encoder analyze was opened and we go to mode
- Date: Fri, 4 Mar 2022 11:52:40 +0000 (UTC)
commit 785236d346c1d52ec2706330acf71b7f864378a9
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Mar 4 12:51:52 2022 +0100
On delete session, currentPerson = null (fixes crash if encoder analyze was opened and we go to mode menu
and to encoder again)
src/gui/app1/session/delete.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/session/delete.cs b/src/gui/app1/session/delete.cs
index b87b8644f..ff7d2c8ae 100644
--- a/src/gui/app1/session/delete.cs
+++ b/src/gui/app1/session/delete.cs
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Copyright (C) 2004-2020 Xavier de Blas <xaviblas gmail com>
+ * Copyright (C) 2004-2022 Xavier de Blas <xaviblas gmail com>
*/
using System;
@@ -85,6 +85,7 @@ public partial class ChronoJumpWindow
{
closeSession ();
treeview_persons_storeReset();
+ currentPerson = null;
}
SqliteSession.DeleteAllStuff(tempDeletingSession.UniqueID.ToString());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]