summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pref.h1
-rw-r--r--qt-ui/preferences.cpp4
-rw-r--r--subsurfacestartup.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/pref.h b/pref.h
index 2e5bf83c7..3320e39e5 100644
--- a/pref.h
+++ b/pref.h
@@ -90,6 +90,7 @@ struct preferences {
bool show_pictures_in_profile;
bool use_default_file;
facebook_prefs_t facebook;
+ char *passphrase;
};
enum unit_system_values {
METRIC,
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index aeccc961c..db454c6d8 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -465,6 +465,10 @@ void PreferencesDialog::loadSettings()
GET_TXT("proxy_user", proxy_user);
GET_TXT("proxy_pass", proxy_pass);
s.endGroup();
+
+ s.beginGroup("RemoteStorage");
+ GET_TXT("passphrase", passphrase);
+ s.endGroup();
}
void PreferencesDialog::buttonClicked(QAbstractButton *button)
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index 886365a16..429b40395 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -248,6 +248,7 @@ void free_prefs(void)
free((void*)prefs.default_filename);
free((void*)prefs.default_cylinder);
free((void*)prefs.divelist_font);
+ free((void*)prefs.passphrase);
free(prefs.proxy_host);
free(prefs.proxy_user);
free(prefs.proxy_pass);