summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/frontmatter_editor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/frontmatter_editor.py b/ui/frontmatter_editor.py
index 160536e..add9a41 100644
--- a/ui/frontmatter_editor.py
+++ b/ui/frontmatter_editor.py
@@ -75,8 +75,9 @@ class FrontmatterEditor(QDialog):
if key == "type":
widget = QComboBox()
widget.addItems(ARTICLE_TYPES)
- if str(val) in ARTICLE_TYPES:
- widget.setCurrentText(str(val))
+ val_lower = str(val).lower()
+ if val_lower in ARTICLE_TYPES:
+ widget.setCurrentText(val_lower)
self._fields[key] = widget
elif key == "tags":
widget = QLineEdit(", ".join(str(v) for v in val) if isinstance(val, list) else str(val))