Caching dialog in xdxf is set to modal
[mdictionary] / src / plugins / xdxf / XdxfCachingDialog.cpp
index 3e0a2d6..29496d6 100644 (file)
@@ -55,6 +55,13 @@ XdxfCachingDialog::XdxfCachingDialog(XdxfPlugin *parent) {
     connect(parent, SIGNAL(updateCachingProgress(int, int)),
        this, SLOT(updateCachingProgress(int, int)));
     time.start();
+
+    setModal(true);
+}
+
+
+void XdxfCachingDialog::reject() {
+    return;
 }
 
 void XdxfCachingDialog::updateCachingProgress(int progress, int time) {
@@ -68,5 +75,5 @@ void XdxfCachingDialog::updateCachingProgress(int progress, int time) {
     cachingLabel->setText(tr("Estimated time left: ") +
                           tr("%n second(s)", "", seconds));
     if(progress >= 100)
-        this->hide();
+        this->accept();
 }