* Show an error message when there is not enough room to close the editor in memory...
[modest] / src / hildon2 / modest-easysetup-wizard-dialog.c
index 694b37d..1fadc88 100644 (file)
@@ -1414,6 +1414,9 @@ create_subsequent_pages (ModestEasysetupWizardDialog *self)
        picker = MODEST_PROVIDER_PICKER (priv->account_serviceprovider_picker);
        id_type = modest_provider_picker_get_active_id_type (picker);
        g_object_get (self, "wizard-notebook", &notebook, NULL);
+       modest_wizard_dialog_set_response_override_handler (MODEST_WIZARD_DIALOG (self),
+                                                           NULL);
+       
 
        if (id_type == MODEST_PROVIDER_PICKER_ID_OTHER) {
                /* "Other..." was selected: */
@@ -1471,12 +1474,17 @@ create_subsequent_pages (ModestEasysetupWizardDialog *self)
                                ModestPairList *tabs;
                                GSList *tmp;
                                gboolean first_page = TRUE;
+                               ModestWizardDialogResponseOverrideFunc response_override;
 
                                /* Remember the last selected plugin protocol */
                                priv->last_plugin_protocol_selected = proto_type;
 
                                /* Get tabs */
                                tabs = modest_account_protocol_get_easysetupwizard_tabs (MODEST_ACCOUNT_PROTOCOL (protocol));
+                               response_override = modest_account_protocol_get_wizard_response_override 
+                                       (MODEST_ACCOUNT_PROTOCOL (protocol));
+                               modest_wizard_dialog_set_response_override_handler (MODEST_WIZARD_DIALOG (self),
+                                                                                   response_override);
                                tmp = (GSList *) tabs;
                                while (tmp) {
                                        ModestPair *pair = (ModestPair *) tmp->data;
@@ -1490,12 +1498,14 @@ create_subsequent_pages (ModestEasysetupWizardDialog *self)
                                        }
 
                                        /* Connect signals */
-                                       priv->missing_data_signals = 
-                                               modest_signal_mgr_connect (priv->missing_data_signals, 
-                                                                          G_OBJECT (pair->second), 
-                                                                          "missing-mandatory-data",
-                                                                          G_CALLBACK (on_missing_mandatory_data), 
-                                                                          self);
+                                       if (MODEST_IS_EASYSETUP_WIZARD_PAGE (pair->second)) {
+                                               priv->missing_data_signals = 
+                                                       modest_signal_mgr_connect (priv->missing_data_signals, 
+                                                                                  G_OBJECT (pair->second), 
+                                                                                  "missing-mandatory-data",
+                                                                                  G_CALLBACK (on_missing_mandatory_data), 
+                                                                                  self);
+                                       }
 
                                        g_free (pair->first);
                                        tmp = g_slist_next (tmp);