* 2 bugs fixed, why didn't the compiler complain?
[modest] / src / hildon / modest-ui-message-editor.c
index f67e860..81a1a76 100644 (file)
@@ -327,7 +327,7 @@ new_editor_with_presets (ModestUI *modest_ui, const gchar *to_header,
 void
 on_new_mail_clicked (GtkWidget *widget, gpointer user_data)
 {
-       ModestUI *modest_ui = (ModestUI *) modest_ui;
+       ModestUI *modest_ui = (ModestUI *) user_data;
 
        new_editor_with_presets(modest_ui, "", "", "", "", "", NULL);
 }