change comment's and fix bug (xslt transform)
[mdictionary] / src / plugins / xdxf / XdxfDictDownloader.cpp
index 9a1ecbd..2e3517c 100644 (file)
 #include <QDebug>
 #include <QProcess>
 #include <bzlib.h>
-#ifndef Q_WS_MAEMO_5
-#include <libtar.h>
-#endif
 #include <stdio.h>
 #include <fcntl.h>
 
+#ifndef Q_WS_MAEMO_5
+    #include <libtar.h>
+#endif
+
+
 typedef void BZFILE;
 
+
 XdxfDictDownloader::XdxfDictDownloader(QObject *parent) :
     QObject(parent) {
     parentDialog = 0;
@@ -174,7 +177,6 @@ void XdxfDictDownloader::dictListReceived(QNetworkReply *reply) {
         progressDialog->show();
 
         QString url = selectDialog.link();
-
         _fileName = url.split('/').last();
 
         QProcess clean;
@@ -223,7 +225,8 @@ bool XdxfDictDownloader::extract(QString file) {
     if(err == -1)
         return false;
 
-    err = tar_extract_all(t,"/tmp/mdict/");
+    char text[]={"/tmp/mdict/"};
+    err = tar_extract_all(t,text);
     if(err == -1) {
         return false;
     }