diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 6b43fcdd52..7a0131f6c5 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -138,8 +138,7 @@ class IconResourceManager: q = os.path.join(self.override_icon_path, name) if os.path.exists(q): return QIcon(q) - name = '__'.join(name.split('/')) - return QIcon.fromTheme(os.path.splitext(name)[0]) + return QIcon.fromTheme(os.path.splitext(name.replace('/', '__'))[0]) def set_theme(self, is_dark_theme): QIcon.setThemeName(self.dark_theme_name if is_dark_theme else self.light_theme_name)