Next fix of xdxf caching dialog
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 10 Sep 2010 07:28:14 +0000 (09:28 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 10 Sep 2010 07:28:14 +0000 (09:28 +0200)
src/plugins/xdxf/XdxfCachingDialog.cpp
src/plugins/xdxf/xdxfplugin.cpp

index 9ddad98..29a8d18 100644 (file)
@@ -54,9 +54,7 @@ XdxfCachingDialog::XdxfCachingDialog(QWidget *parent): QDialog(parent) {
 
     time.start();
 
-    //#ifndef Q_WS_MAEMO_5
     setModal(true);
-    //#endif
 }
 
 
index e886f23..e44e0ea 100644 (file)
@@ -490,13 +490,6 @@ bool XdxfPlugin::makeCache(QString) {
 
     d.show();
 
-
-  //  cachingDialog->setParent(_dictDialog->lastDialogParent());
- //   #ifdef Q_WS_MAEMO_5
- //       cachingDialog->setVisible(true);
- //   #else
-  //      cachingDialog->exec();
- //   #endif
     QCoreApplication::processEvents();
     QFileInfo dictFileN(_settings->value("path"));
     QString cachePathN;
@@ -600,13 +593,11 @@ bool XdxfPlugin::makeCache(QString) {
             if(prog % 2 == 0 && lastProg != prog) {
                 Q_EMIT updateCachingProgress(prog,timer.restart());
                 lastProg = prog;
-                sleep(1);
             }
         }
     }
     cur.exec("END;");
     cur.exec("select count(*) from dict");
-    //cachingDialog->hide();
 
     /*checke errors (wrong number of added words)*/
     countWords();