checkBoxLayout->addWidget(langToLabel);
checkBoxLayout->addWidget(langTo, 10);
+ //here removing already added dictionary
+
+ for (int i = 0; i < dicts.size(); i++){
+ if(QFile::exists(QDir::homePath() + "/.mdictionary/" + dicts[i].title() + ".xdxf")){
+ dicts.removeAt(i);
+ i--;
+ }
+ }
+
model = new DictsModel(dicts, this);
proxyModel = new DictsProxyModel;