feat: disable tab renaming on double-click via setting (#6163)
Fixes #6156
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user