* src/modest-tny-account-store.c: (on_idle_wrong_password):
A compilation fix, though the build wasn't broken for me.
pmo-trunk-r2663
+2007-07-10 Murray Cumming <murrayc@murrayc.com>
+
+ * src/modest-tny-account-store.c: (on_idle_wrong_password):
+ A compilation fix, though the build wasn't broken for me.
+
2007-07-09 Murray Cumming <murrayc@murrayc.com>
* src/modest-ui-actions.c: (modest_ui_actions_on_send_receive):
2007-07-09 Murray Cumming <murrayc@murrayc.com>
* src/modest-ui-actions.c: (modest_ui_actions_on_send_receive):
* for instance because of a previous get_password() call:
*/
gpointer dialog_as_gpointer = NULL;
* for instance because of a previous get_password() call:
*/
gpointer dialog_as_gpointer = NULL;
- priv->account_settings_dialog_hash &&
- g_hash_table_lookup_extended (priv->account_settings_dialog_hash,
- modest_account_name,
- NULL,
- (gpointer*)&dialog_as_gpointer);
-
+ gboolean found = FALSE;
+ if (priv->account_settings_dialog_hash) {
+ found = g_hash_table_lookup_extended (priv->account_settings_dialog_hash,
+ modest_account_name, NULL, (gpointer*)&dialog_as_gpointer);
+ }
+
ModestAccountSettingsDialog *dialog = dialog_as_gpointer;
ModestWindow *main_window =
modest_window_mgr_get_main_window (modest_runtime_get_window_mgr ());
gboolean created_dialog = FALSE;
ModestAccountSettingsDialog *dialog = dialog_as_gpointer;
ModestWindow *main_window =
modest_window_mgr_get_main_window (modest_runtime_get_window_mgr ());
gboolean created_dialog = FALSE;
+ if (!found || !dialog) {
dialog = modest_account_settings_dialog_new ();
modest_account_settings_dialog_set_account_name (dialog, modest_account_name);
modest_account_settings_dialog_switch_to_user_info (dialog);
dialog = modest_account_settings_dialog_new ();
modest_account_settings_dialog_set_account_name (dialog, modest_account_name);
modest_account_settings_dialog_switch_to_user_info (dialog);