diff options
author | fiaxh <git@mx.ax.lt> | 2017-10-29 15:15:28 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-10-31 15:41:45 +0100 |
commit | 0102abeec1d2055b19dccbb7edc7f06e527642b1 (patch) | |
tree | 4018e82224c19142c4a7a6eced67d9c2550b2dd8 /plugins/omemo/src | |
parent | b9df78e4494879752e9e68dcc5d54e03fffe9467 (diff) | |
download | dino-0102abeec1d2055b19dccbb7edc7f06e527642b1.tar.gz dino-0102abeec1d2055b19dccbb7edc7f06e527642b1.zip |
Fix warnings
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r-- | plugins/omemo/src/account_settings_dialog.vala | 3 | ||||
-rw-r--r-- | plugins/omemo/src/database.vala | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/omemo/src/account_settings_dialog.vala b/plugins/omemo/src/account_settings_dialog.vala index 373d02aa..4a63ef2f 100644 --- a/plugins/omemo/src/account_settings_dialog.vala +++ b/plugins/omemo/src/account_settings_dialog.vala @@ -17,6 +17,7 @@ public class AccountSettingsDialog : Gtk.Dialog { public AccountSettingsDialog(Plugin plugin, Account account) { Object(use_header_bar : 1); this.plugin = plugin; + this.account = account; string own_b64 = plugin.db.identity.row_with(plugin.db.identity.account_id, account.id)[plugin.db.identity.identity_key_public_base64]; fingerprint = fingerprint_from_base64(own_b64); @@ -50,4 +51,4 @@ public class AccountSettingsDialog : Gtk.Dialog { } -}
\ No newline at end of file +} diff --git a/plugins/omemo/src/database.vala b/plugins/omemo/src/database.vala index 52a1b15d..5c7309f3 100644 --- a/plugins/omemo/src/database.vala +++ b/plugins/omemo/src/database.vala @@ -116,7 +116,9 @@ public class Database : Qlite.Database { pre_key = new PreKeyTable(this); session = new SessionTable(this); init({identity_meta, identity, signed_pre_key, pre_key, session}); - exec("PRAGMA synchronous=0"); + try { + exec("PRAGMA synchronous=0"); + } catch (Error e) { } } public override void migrate(long oldVersion) { |