[gnome-terminal] prefs: Fix standalone launch of g-t-preferences



commit 08100ecf33f2caf2a4aed36c0d9ed3a551bf10b7
Author: Christian Persch <chpe src gnome org>
Date:   Mon Sep 12 22:27:02 2022 +0200

    prefs: Fix standalone launch of g-t-preferences

 src/prefs-main.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/prefs-main.cc b/src/prefs-main.cc
index 94e9846b..381dc989 100644
--- a/src/prefs-main.cc
+++ b/src/prefs-main.cc
@@ -238,9 +238,10 @@ main(int argc,
   if (!connection) {
     gs_unref_object GSettings* profile = profile_from_uuid(TERMINAL_APP(app),
                                                            arg_profile_uuid);
-    if (arg_profile_uuid && !profile)
+    if (arg_profile_uuid && !profile) {
       g_printerr("No profile with UUID \"%s\": %s\n", arg_profile_uuid, error->message);
-    return EXIT_FAILURE;
+      return EXIT_FAILURE;
+    }
 
     terminal_app_edit_preferences(TERMINAL_APP(app),
                                   profile,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]