[gnome-software] Fix a crash when double clicking files



commit 0ad2e28f72c77a14e81d5b89f415b975017567c0
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jun 24 13:42:22 2016 +0100

    Fix a crash when double clicking files
    
    We need a better fix for this, but fixing the crash comes first.

 src/gs-shell.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 9b53e61..962a924 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -298,7 +298,8 @@ gs_shell_change_mode (GsShell *shell,
                new_page = GS_PAGE (priv->shell_updates);
                break;
        case GS_SHELL_MODE_DETAILS:
-               if (GS_IS_APP (data))
+               /* FIXME: this is a hack */
+               if (memcmp (data, "/", 1) != 0)
                        gs_shell_details_set_app (priv->shell_details, data);
                else
                        gs_shell_details_set_filename (priv->shell_details, data);


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