gnome: set display name for RING accounts

Setting the alias will also set the the display name to the same
value for a RING account.  All RING accounts with empty display
names have theirs set to the same as their alias.

Issue: #77367
Change-Id: Ie031f381f0b3bd272802746120a05c22b04f4fdc
diff --git a/src/accountview.cpp b/src/accountview.cpp
index 007d3c5..eb1ae06 100644
--- a/src/accountview.cpp
+++ b/src/accountview.cpp
@@ -301,7 +301,9 @@
             GtkWidget *working = ring_dialog_working(GTK_WIDGET(view), NULL);
             gtk_window_present(GTK_WINDOW(working));
 
-            AccountModel::instance()->add(QString("New Account"), protocol_idx);
+            auto account = AccountModel::instance()->add(QString("New Account"), protocol_idx);
+            if (account->protocol() == Account::Protocol::RING)
+                account->setDisplayName("New Account");
 
             /* now save after a short timeout to make sure that
              * the save doesn't happen before the "working" dialog is presented