From db94abf62fa9f0d4aeeb1c245b3b0cf537332b81 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 29 Jul 2014 12:24:13 +0300 Subject: [PATCH] Fix no icon found on about dialog --- youtube_dl_gui/OptionsFrame.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/youtube_dl_gui/OptionsFrame.py b/youtube_dl_gui/OptionsFrame.py index 0ae9f1b..91a1230 100644 --- a/youtube_dl_gui/OptionsFrame.py +++ b/youtube_dl_gui/OptionsFrame.py @@ -958,9 +958,11 @@ class GeneralPanel(wx.Panel): ''' Event handler about button. ''' info = wx.AboutDialogInfo() - icon = wx.Icon(get_icon_path(), wx.BITMAP_TYPE_PNG) - - info.SetIcon(icon) + # Load about icon + app_icon = get_icon_path() + if app_icon is not None: + info.SetIcon(wx.Icon(app_icon, wx.BITMAP_TYPE_PNG)) + info.SetName(__appname__) info.SetVersion(__version__) info.SetDescription(__descriptionfull__)