From d549b8358c2be70b2e0a6e4b4849478565630bbe Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 21 Apr 2016 12:27:33 -0400 Subject: Fix up the mouse focus when switching tabs around. --- desktop-utilities/lumina-textedit/MainUI.cpp | 1 + desktop-utilities/lumina-textedit/MainUI.ui | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop-utilities/lumina-textedit/MainUI.cpp b/desktop-utilities/lumina-textedit/MainUI.cpp index 199dba1d..7425b399 100644 --- a/desktop-utilities/lumina-textedit/MainUI.cpp +++ b/desktop-utilities/lumina-textedit/MainUI.cpp @@ -232,6 +232,7 @@ void MainUI::tabChanged(){ ui->actionSave_File->setEnabled(changes); ui->actionSave_File_As->setEnabled(changes); this->setWindowTitle( ui->tabWidget->tabText( ui->tabWidget->currentIndex() ) ); + if(!ui->line_find->hasFocus() && !ui->line_replace->hasFocus()){ ui->tabWidget->currentWidget()->setFocus(); } } void MainUI::tabClosed(int tab){ diff --git a/desktop-utilities/lumina-textedit/MainUI.ui b/desktop-utilities/lumina-textedit/MainUI.ui index 0bd17b99..26fceac4 100644 --- a/desktop-utilities/lumina-textedit/MainUI.ui +++ b/desktop-utilities/lumina-textedit/MainUI.ui @@ -33,7 +33,7 @@ - Qt::ClickFocus + Qt::NoFocus true -- cgit