Disable focus acquiring by "New tab" button

This commit is contained in:
Abs62 2020-10-22 20:41:37 +03:00
parent 5d7d553bb5
commit 9fb33d10bd

View file

@ -606,7 +606,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
addTab.setAutoRaise( true ); addTab.setAutoRaise( true );
addTab.setToolTip( tr( "New Tab" ) ); addTab.setToolTip( tr( "New Tab" ) );
addTab.setFocusPolicy(Qt::ClickFocus); addTab.setFocusPolicy( Qt::NoFocus );
addTab.setIcon( QIcon( ":/icons/addtab.png" ) ); addTab.setIcon( QIcon( ":/icons/addtab.png" ) );
ui.tabWidget->setHideSingleTab(cfg.preferences.hideSingleTab); ui.tabWidget->setHideSingleTab(cfg.preferences.hideSingleTab);