diff options
Diffstat (limited to 'desktop-utilities')
-rw-r--r-- | desktop-utilities/lumina-textedit/MainUI.cpp | 1 | ||||
-rw-r--r-- | desktop-utilities/lumina-textedit/MainUI.ui | 2 |
2 files changed, 2 insertions, 1 deletions
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 @@ <item> <widget class="QTabWidget" name="tabWidget"> <property name="focusPolicy"> - <enum>Qt::ClickFocus</enum> + <enum>Qt::NoFocus</enum> </property> <property name="tabsClosable"> <bool>true</bool> |