Make it possible to add/remove values from skippedNames, noContentSuffixes and xallexcepts by using +- suffixed var names

This commit is contained in:
Jean-Francois Dockes
2017-02-22 17:03:08 +01:00
parent fff59f7814
commit b328215c9a
3 changed files with 266 additions and 151 deletions
+3 -8
View File
@@ -83,8 +83,7 @@ void ViewAction::fillLists()
set<string> viewerXs;
if (prefs.useDesktopOpen) {
string s = theconfig->getMimeViewerAllEx();
stringToStrings(s, viewerXs);
viewerXs = theconfig->getMimeViewerAllEx();
}
for (vector<pair<string, string> >::const_iterator it = defs.begin();
it != defs.end(); it++) {
@@ -176,9 +175,7 @@ void ViewAction::editActions()
QString action0;
int except0 = -1;
set<string> viewerXs;
string s = theconfig->getMimeViewerAllEx();
stringToStrings(s, viewerXs);
set<string> viewerXs = theconfig->getMimeViewerAllEx();
list<string> mtypes;
bool dowarnmultiple = true;
@@ -233,8 +230,6 @@ void ViewAction::editActions()
theconfig->setMimeViewerDef(*mit, sact);
}
s = stringsToString(viewerXs);
theconfig->setMimeViewerAllEx(s);
theconfig->setMimeViewerAllEx(viewerXs);
fillLists();
}