From 1a34435ed82c2f3d315f3ee043663e57fa297f38 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 12 Jul 2026 20:48:54 +0200 Subject: [PATCH] fileitemaction: friendly format names in dropdown --- fileitemaction/denote_fileitemaction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fileitemaction/denote_fileitemaction.cpp b/fileitemaction/denote_fileitemaction.cpp index bb6e34e..a728661 100644 --- a/fileitemaction/denote_fileitemaction.cpp +++ b/fileitemaction/denote_fileitemaction.cpp @@ -193,9 +193,9 @@ void DenoteFileItemAction::createDenoteFile(const QString &dirPath, QWidget *par form->addRow(QStringLiteral("Signature:"), sigEdit); auto *extCombo = new QComboBox(); - extCombo->addItem(QStringLiteral(".md")); - extCombo->addItem(QStringLiteral(".org")); - extCombo->addItem(QStringLiteral(".txt")); + extCombo->addItem(QStringLiteral("Markdown"), QStringLiteral(".md")); + extCombo->addItem(QStringLiteral("Emacs org-mode"), QStringLiteral(".org")); + extCombo->addItem(QStringLiteral("Plain Text"), QStringLiteral(".txt")); form->addRow(QStringLiteral("Format:"), extCombo); layout->addLayout(form); @@ -221,7 +221,7 @@ void DenoteFileItemAction::createDenoteFile(const QString &dirPath, QWidget *par } const QString signature = sigEdit->text().trimmed(); - const QString ext = extCombo->currentText(); + const QString ext = extCombo->currentData().toString(); // Build filename and full path const QString filename = Denote::buildFilename(title, tags, signature, ext);