fix bug (duplication of dictionarys in xdxf downloader)
[mdictionary] / src / plugins / xdxf / XdxfDictDownloader.cpp
index 2e3517c..f212d71 100644 (file)
@@ -161,7 +161,7 @@ void XdxfDictDownloader::dictListReceived(QNetworkReply *reply) {
     QRegExp regInner("<tr>.*</tr>");
     regInner.setMinimal(true);
     int pos = 0;
-
+    dicts.clear();
     while ((pos = regInner.indexIn(page, pos)) != -1) {
         DownloadDict temp = DownloadDict(regInner.cap(0));
         if(!temp.fromLang().isEmpty())