From d50614aed75b912b1900cc3790f70337cc581eed Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 30 Mar 2019 16:20:21 +0700 Subject: [PATCH] Fix empty theme name in symbol selection dialog. Fixes https://github.com/GNS3/gns3-gui/issues/2751 --- gns3server/controller/symbols.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/controller/symbols.py b/gns3server/controller/symbols.py index 595848c9b..bd89dea20 100644 --- a/gns3server/controller/symbols.py +++ b/gns3server/controller/symbols.py @@ -83,6 +83,8 @@ class Symbols: continue symbol_file = posixpath.normpath(os.path.relpath(os.path.join(root, filename), get_resource("symbols"))).replace('\\', '/') theme = posixpath.dirname(symbol_file).replace('/', '-').capitalize() + if not theme: + continue symbol_id = ':/symbols/' + symbol_file symbols.append({'symbol_id': symbol_id, 'filename': filename,