diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-08 12:41:36 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-08 12:41:36 +0000 |
commit | 495135e81dfd63a86627a8b475aca10bc63aace2 (patch) | |
tree | 4ac4bb02399588ed2265b27aa98b7217372ecde7 /plugins/IEView/src/Options.cpp | |
parent | 83e12b19441b510f6f65b9bca851bedc22570a23 (diff) |
IEView: ReloadOptions service
git-svn-id: http://svn.miranda-ng.org/main/trunk@16062 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/Options.cpp')
-rw-r--r-- | plugins/IEView/src/Options.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/IEView/src/Options.cpp b/plugins/IEView/src/Options.cpp index 59dbde9186..d40902b863 100644 --- a/plugins/IEView/src/Options.cpp +++ b/plugins/IEView/src/Options.cpp @@ -469,7 +469,7 @@ static void MarkInitialized(int i) initialized |= i;
}
-static void ApplyChanges(int i)
+void ApplyChanges(int i)
{
changed &= ~i;
initialized &= ~i;
@@ -1747,3 +1747,14 @@ void Options::saveProtocolSettings() db_set_s(NULL, ieviewModuleName, dbsName, tmpPath);
}
}
+
+void Options::Reload()
+{
+ ProtocolSettings *p, *p1;
+ for (p = Options::protocolList; p != NULL; p = p1) {
+ p1 = p->getNext();
+ delete p;
+ }
+ isInited = false;
+ init();
+}
\ No newline at end of file |