diff options
author | Merov Linden <merov@lindenlab.com> | 2010-11-01 17:28:28 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2010-11-01 17:28:28 -0700 |
commit | 87e2b01fbbab1927a83d305edfc454ac05050742 (patch) | |
tree | b99de857678b316196082654b20b00d2d6054a31 /indra | |
parent | 398b8564e19deacc27a631e4668b00ed4a6ffe12 (diff) |
STORM-420 : Took Andrew's comment into account, fixing the issue when minimap was minimized
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloatermap.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llfloatermap.cpp b/indra/newview/llfloatermap.cpp index 8a48265313..351b9ac5da 100644 --- a/indra/newview/llfloatermap.cpp +++ b/indra/newview/llfloatermap.cpp @@ -126,6 +126,13 @@ BOOL LLFloaterMap::postBuild() BOOL LLFloaterMap::handleDoubleClick(S32 x, S32 y, MASK mask) { + // If floater is minimized, minimap should be shown on doubleclick (STORM-299) + if (isMinimized()) + { + setMinimized(FALSE); + return TRUE; + } + LLVector3d pos_global = mMap->viewPosToGlobal(x, y); // If we're not tracking a beacon already, double-click will set one @@ -145,9 +152,7 @@ BOOL LLFloaterMap::handleDoubleClick(S32 x, S32 y, MASK mask) } else { - // If floater is minimized, minimap should be shown on doubleclick (STORM-299) - std::string floater_to_show = this->isMinimized() ? "mini_map" : "world_map"; - LLFloaterReg::showInstance(floater_to_show); + LLFloaterReg::showInstance("world_map"); } return TRUE; } |