[chronojump] SqliteSession.DeleteAllStuff SPECIFIC -> IMPORT



commit ffe4e02ced98ac7f53a9128add362a29480d3d2d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jun 29 17:06:52 2020 +0200

    SqliteSession.DeleteAllStuff SPECIFIC -> IMPORT

 src/gui/app1/session/loadAndImport.cs | 2 +-
 src/sqlite/session.cs                 | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/app1/session/loadAndImport.cs b/src/gui/app1/session/loadAndImport.cs
index 69fac67f..3f605d79 100644
--- a/src/gui/app1/session/loadAndImport.cs
+++ b/src/gui/app1/session/loadAndImport.cs
@@ -295,7 +295,7 @@ public partial class ChronoJumpWindow
                if (app1s_type == app1s_windowType.LOAD_SESSION) {
                        databaseType = SqliteSessionSwitcher.DatabaseType.DEFAULT;
                } else {
-                       databaseType = SqliteSessionSwitcher.DatabaseType.SPECIFIC;
+                       databaseType = SqliteSessionSwitcher.DatabaseType.IMPORT;
                }
                SqliteSessionSwitcher sessionSwitcher = new SqliteSessionSwitcher (databaseType, 
app1s_import_file_path);
                
diff --git a/src/sqlite/session.cs b/src/sqlite/session.cs
index f9f0eaaa..6c2ab0e7 100644
--- a/src/sqlite/session.cs
+++ b/src/sqlite/session.cs
@@ -44,7 +44,8 @@ public class SqliteSessionSwitcher
        public enum DatabaseType
        {
                DEFAULT,
-               SPECIFIC
+               IMPORT,
+               EXPORT
        };
        
        public SqliteSessionSwitcher(DatabaseType type, string databasePath)
@@ -368,7 +369,7 @@ class SqliteSession : Sqlite
        private static string[] selectAllSessionsDo(string filterName, SqliteConnection dbcon)
        {
                // This method should NOT use Sqlite.open() / Sqlite.close(): it should only use dbcon
-               // to connect to the database. This methos is used by the importer after opening an arbitrary
+               // to connect to the database. This method is used by the importer after opening an arbitrary
                // ChronoJump sqlite database. It needs to be refactored to the new database system.
 
                dbcmd = dbcon.CreateCommand();


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