Index: jbidwatcher/trunk/src/com/jbidwatcher/util/db/Database.java =================================================================== --- jbidwatcher/trunk/src/com/jbidwatcher/util/db/Database.java (revision 948) +++ jbidwatcher/trunk/src/com/jbidwatcher/util/db/Database.java (revision 951) @@ -184,4 +184,14 @@ public Connection getConnection() { return mConn; } + + public static void saveDBConfig() { + if(JConfig.queryConfiguration("temp.db.protocol") != null) { + String[] keys = { "db.framework", "db.protocol", "db.driver", "db.user", "db.pass" }; + for(String key : keys) { + JConfig.setConfiguration(key, JConfig.queryConfiguration("temp." + key)); + } + JConfig.kill("jbidwatcher.created_db"); + } + } }