//Install default config files
ConfigGenerator confGen;
- confGen.generateCss(_dir + "style.css");
+ ///confGen.generateCss(_dir + "style.css");
confGen.generateDefaultConfig(_configPath);
loadPrefs(_configPath);
if(!exists) {
_plugins.append(plugin);
plugin->retranslate();
+ connect(plugin, SIGNAL(notify(Notify::NotifyType,QString)),
+ this, SIGNAL(notify(Notify::NotifyType,QString)));
}
}
}
// For convienence this function is called for each change in dictionaries
// and each call dumps configuration for all dictionaries into file.
- // Maybe better way would be to store new/changed configuration but
+ // Maybe a better way would be to store new/changed configuration but
// parsing settings file and figuring out what was changed, in my opinion,
// would take more time
_history->setMaxSize(_historyLen);
foreach(Translation* tr, translations) {
if(containsDict(tr->dict()) || !tr->dict())
dummy.append(TranslationPtr(tr));
- /* foreach(CommonDictInterface* dict, activeDicts()) {
- Translation* trans = dict->getTranslationFor(tr->key());
- if(trans)
- dummy.append(TranslationPtr(trans));
- } */
}
if(translations.size()>0) {
Translation *tr = translations.at(0);