[chronojump] session name cannnot have '/'



commit e4d1b149c8119f0606ac0da796528aaec1372ce0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Nov 17 16:21:16 2017 +0100

    session name cannnot have '/'

 src/gui/session.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/session.cs b/src/gui/session.cs
index 8c37818..1d3c5cc 100644
--- a/src/gui/session.cs
+++ b/src/gui/session.cs
@@ -590,6 +590,7 @@ public class SessionAddEditWindow {
                //check if name of session exists (is owned by other session),
                //but all is ok if the name is the same as the old name (editing)
                string name = Util.RemoveTildeAndColon(entry_name.Text);
+               name = Util.RemoveChar(name, '/');
 
                bool sessionNameExists = Sqlite.Exists (false, Constants.SessionTable, name);
                if(sessionNameExists && name != currentSession.Name ) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]