feat: disable tab renaming on double-click via setting (#6163)

Fixes #6156
This commit is contained in:
James Upjohn
2025-04-20 21:19:40 +12:00
committed by GitHub
parent 1f10935d78
commit 462e2ba658
4 changed files with 13 additions and 2 deletions
+4 -2
View File
@@ -958,8 +958,10 @@ void NotebookTab::mouseReleaseEvent(QMouseEvent *event)
void NotebookTab::mouseDoubleClickEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton &&
this->notebook_->getAllowUserTabManagement())
const auto canRenameTab = this->notebook_->getAllowUserTabManagement() &&
getSettings()->disableTabRenamingOnClick == false;
if (event->button() == Qt::LeftButton && canRenameTab)
{
this->showRenameDialog();
}