[chronojump] Disallow to change session while personSelectWindow is active
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Disallow to change session while personSelectWindow is active
- Date: Thu, 13 Oct 2022 15:51:42 +0000 (UTC)
commit 7ddb283bbf2c17584db75c92cc9e719425635e46
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Oct 13 17:50:44 2022 +0200
Disallow to change session while personSelectWindow is active
src/gui/app1/chronojumpPersons.cs | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index 701750a97..58e79dcc7 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -396,6 +396,10 @@ public partial class ChronoJumpWindow
return;
}
+ //personSelectWindow is not modal to allow other windows to show on top
+ //but not allow to change session while personSelectWindow is active
+ vbox_menu_tiny.Sensitive = false;
+
//if not compujump show person change window
ArrayList myPersons = SqlitePersonSession.SelectCurrentSessionPersons(
currentSession.UniqueID,
@@ -487,6 +491,8 @@ public partial class ChronoJumpWindow
private void on_button_top_person_change_done(object o, EventArgs args)
{
+ vbox_menu_tiny.Sensitive = true;
+
if(personSelectWin.SelectedPerson == null)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]