Index: /trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp	(revision 54953)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp	(revision 54954)
@@ -234,4 +234,15 @@
 }
 
+void UISettingsSerializerProgress::closeEvent(QCloseEvent *pEvent)
+{
+    /* No need to close the dialog: */
+    pEvent->ignore();
+}
+
+void UISettingsSerializerProgress::reject()
+{
+    /* No need to reject the dialog. */
+}
+
 void UISettingsSerializerProgress::sltStartProcess()
 {
Index: /trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h	(revision 54953)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h	(revision 54954)
@@ -160,5 +160,11 @@
     void retranslateUi();
 
+    /** Close event-handler called with the given window system @a pEvent. */
+    virtual void closeEvent(QCloseEvent *pEvent);
+
 private slots:
+
+    /** Hides the modal dialog and sets the result code to <i>Rejected</i>. */
+    virtual void reject();
 
     /** Starts the process. */
