Caching dialog in xdxf is set to modal
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 9 Sep 2010 12:59:43 +0000 (14:59 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 9 Sep 2010 12:59:43 +0000 (14:59 +0200)
src/plugins/xdxf/XdxfCachingDialog.cpp
src/plugins/xdxf/xdxfplugin.cpp

index 7471f15..29496d6 100644 (file)
@@ -55,6 +55,8 @@ XdxfCachingDialog::XdxfCachingDialog(XdxfPlugin *parent) {
     connect(parent, SIGNAL(updateCachingProgress(int, int)),
        this, SLOT(updateCachingProgress(int, int)));
     time.start();
+
+    setModal(true);
 }
 
 
index 8751e42..ad0a0bb 100644 (file)
@@ -486,7 +486,7 @@ int XdxfPlugin::countWords() {
 
 
 bool XdxfPlugin::makeCache(QString) {
-    cachingDialog->setVisible(true);
+    cachingDialog->show();
     QCoreApplication::processEvents();
     QFileInfo dictFileN(_settings->value("path"));
     QString cachePathN;
@@ -594,7 +594,7 @@ bool XdxfPlugin::makeCache(QString) {
     }
     cur.exec("END;");
     cur.exec("select count(*) from dict");
-    cachingDialog->setVisible(false);
+    //cachingDialog->hide();
 
     /*checke errors (wrong number of added words)*/
     countWords();