Merge lp:~peterffy95/stellarium/stellarium into lp:stellarium

Proposed by Gábor Péterffy
Status: Merged
Merged at revision: 6792
Proposed branch: lp:~peterffy95/stellarium/stellarium
Merge into: lp:stellarium
Diff against target: 12 lines (+2/-0)
1 file modified
src/StelMainView.cpp (+2/-0)
To merge this branch: bzr merge lp:~peterffy95/stellarium/stellarium
Reviewer Review Type Date Requested Status
Alexander Wolf Approve
Review via email: mp+219034@code.launchpad.net

Description of the change

Bug #1294490 fixed, it is only tested on linux with Qt 5.2.1

To post a comment you must log in.
Revision history for this message
Alexander Wolf (alexwolf) wrote :

This small patch fix the issue of the focus and work of arrow keys.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/StelMainView.cpp'
2--- src/StelMainView.cpp 2014-05-03 17:58:17 +0000
3+++ src/StelMainView.cpp 2014-05-09 17:20:51 +0000
4@@ -120,6 +120,8 @@
5
6 void StelSkyItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
7 {
8+ //To get back the focus from dialogs
9+ this->setFocus(true);
10 QPointF pos = event->scenePos();
11 // XXX: to reintroduce
12 //distortPos(&pos);