From ade27538ebac7043e680517c7b9f7ba223e12d64 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 20 Sep 2017 18:59:47 +0200 Subject: BUGFIX: default value was always restored for some options --- Aktywator/Setting.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Aktywator/Setting.cs b/Aktywator/Setting.cs index a5540d6..613065f 100644 --- a/Aktywator/Setting.cs +++ b/Aktywator/Setting.cs @@ -161,19 +161,13 @@ namespace Aktywator try { sql.query(this.getAddColumnSql()); - } - catch (OleDbException) - { - } - if (setDefault) - { - try + if (setDefault) { sql.query(this.getSetDefaultSql()); } - catch (OleDbException) - { - } + } + catch (OleDbException) + { } } } -- cgit v1.2.3