From 3a1560d2f61ea814e0399137146060ffda1d23fe Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Thu, 10 Jun 2021 01:11:31 +0200 Subject: [PATCH] Enable more convenient attachment renaming by clicking selection Fixes #1695 --- src/gui/entry/EntryAttachmentsWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/entry/EntryAttachmentsWidget.cpp b/src/gui/entry/EntryAttachmentsWidget.cpp index bab041d8..aeed9f4d 100644 --- a/src/gui/entry/EntryAttachmentsWidget.cpp +++ b/src/gui/entry/EntryAttachmentsWidget.cpp @@ -51,6 +51,7 @@ EntryAttachmentsWidget::EntryAttachmentsWidget(QWidget* parent) m_ui->attachmentsView->horizontalHeader()->resizeSection(EntryAttachmentsModel::NameColumn, 400); m_ui->attachmentsView->setSelectionBehavior(QAbstractItemView::SelectRows); m_ui->attachmentsView->setSelectionMode(QAbstractItemView::ExtendedSelection); + m_ui->attachmentsView->setEditTriggers(QAbstractItemView::SelectedClicked); connect(this, SIGNAL(buttonsVisibleChanged(bool)), this, SLOT(updateButtonsVisible())); connect(this, SIGNAL(readOnlyChanged(bool)), SLOT(updateButtonsEnabled()));