[connections] application: Show the correct connection identifier when deleting
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections] application: Show the correct connection identifier when deleting
- Date: Tue, 18 May 2021 14:33:09 +0000 (UTC)
commit 7830f140a58aad6e7c9b0ed931673630d66a8035
Author: Felipe Borges <felipeborges gnome org>
Date: Tue May 18 16:31:57 2021 +0200
application: Show the correct connection identifier when deleting
This is a regression introduced by the previous commits.
src/application.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/application.vala b/src/application.vala
index b98ca0b..4c530db 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -154,7 +154,8 @@ namespace Connections {
}
}
- var message = _("Connection to ā%sā has been deleted").printf (connection.display_name);
+ var message = _("Connection to ā%sā has been deleted").printf (connection.display_name != "" &&
connection.display_name != null ?
+ connection.display_name :
connection.uri);
main_window.notifications_bar.display_for_action (message,
_("Undo"),
(owned) undo,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]