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);