* update for the changes in the APIs, as well as for *some* compile
[modest] / src / hildon / modest-ui-wizard.c
index fb0f70e..2266497 100644 (file)
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-
-
-/* modest-ui-wizard.c */
-
 #include <gtk/gtk.h>
 #include <glade/glade.h>
 #include <glib/gi18n.h>
@@ -162,7 +158,7 @@ gchar *search_unused_account_or_identity_name(gpointer mgr, gchar *draft) {
        tmpaccount_name=g_string_new("");
        g_string_printf(tmpaccount_name, "%s", draft);
        if(MODEST_IS_ACCOUNT_MGR(mgr)) {
-               for(counter=0; modest_account_mgr_server_account_exists(mgr, tmpaccount_name->str, NULL); counter++)
+               for(counter=0; modest_account_mgr_account_exists(mgr, tmpaccount_name->str, TRUE, NULL); counter++)
                        g_string_printf(tmpaccount_name, "%s%d", draft, counter);
        }
        else