diff options
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 |