summaryrefslogtreecommitdiff
path: root/office/texmaker/focus.patch
blob: dfbafc0d8f9958a775159bfc9ee18f7af48ec932 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- texmaker-1.9/texmaker.cpp.orig	2009-05-21 12:56:32.047389802 -0300
+++ texmaker-1.9/texmaker.cpp	2009-05-21 12:56:33.936554284 -0300
@@ -402,6 +402,8 @@
 CentralLayout->setMargin(0);
 CentralLayout->addWidget(centralToolBar);
 EditorView=new QTabWidget(centralFrame);
+EditorView->setFocusPolicy(Qt::ClickFocus);
+EditorView->setFocus();
 EditorView->setTabsClosable(true);
 connect(EditorView, SIGNAL( currentChanged( int ) ), this, SLOT(UpdateCaption()) );
 CentralLayout->addWidget(EditorView);