MAINT-4739 FIXED Restore cursor when WorldMap floater loses focus.
parent
45167dba2e
commit
c2bd14193d
|
|
@ -63,6 +63,7 @@
|
|||
#include "llviewerregion.h"
|
||||
#include "llviewerstats.h"
|
||||
#include "llviewertexture.h"
|
||||
#include "llviewerwindow.h"
|
||||
#include "llworldmap.h"
|
||||
#include "llworldmapmessage.h"
|
||||
#include "llworldmapview.h"
|
||||
|
|
@ -1634,3 +1635,10 @@ void LLFloaterWorldMap::onChangeMaturity()
|
|||
gSavedSettings.setBOOL("ShowAdultEvents", FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterWorldMap::onFocusLost()
|
||||
{
|
||||
gViewerWindow->showCursor();
|
||||
LLWorldMapView* map_panel = (LLWorldMapView*)gFloaterWorldMap->mPanel;
|
||||
map_panel->mPanning = FALSE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ public:
|
|||
/*virtual*/ BOOL handleScrollWheel(S32 x, S32 y, S32 clicks);
|
||||
/*virtual*/ void draw();
|
||||
|
||||
/*virtual*/ void onFocusLost();
|
||||
|
||||
// methods for dealing with inventory. The observe() method is
|
||||
// called during program startup. inventoryUpdated() will be
|
||||
// called by a helper object when an interesting change has
|
||||
|
|
|
|||
Loading…
Reference in New Issue