Remove DOUBLECLICKBRINGSTOFRONT macro
The code that used it has already been removed and if it were enabled it would do bad things.
This commit is contained in:
@@ -713,15 +713,9 @@ TExpandoMenuBar::RemoveTeam(team_id team, bool partial)
|
|||||||
if (TTeamMenuItem* item = dynamic_cast<TTeamMenuItem*>(ItemAt(i))) {
|
if (TTeamMenuItem* item = dynamic_cast<TTeamMenuItem*>(ItemAt(i))) {
|
||||||
if (item->Teams()->HasItem((void*)(addr_t)team)) {
|
if (item->Teams()->HasItem((void*)(addr_t)team)) {
|
||||||
item->Teams()->RemoveItem(team);
|
item->Teams()->RemoveItem(team);
|
||||||
|
|
||||||
if (partial)
|
if (partial)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef DOUBLECLICKBRINGSTOFRONT
|
|
||||||
if (fLastClickedItem == i)
|
|
||||||
fLastClickedItem = -1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BAutolock locker(sMonLocker);
|
BAutolock locker(sMonLocker);
|
||||||
// make the update thread wait
|
// make the update thread wait
|
||||||
RemoveItem(i);
|
RemoveItem(i);
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ All rights reserved.
|
|||||||
#include <Locker.h>
|
#include <Locker.h>
|
||||||
|
|
||||||
|
|
||||||
//#define DOUBLECLICKBRINGSTOFRONT
|
|
||||||
|
|
||||||
enum drag_and_drop_selection {
|
enum drag_and_drop_selection {
|
||||||
kNoSelection,
|
kNoSelection,
|
||||||
kDeskbarMenuSelection,
|
kDeskbarMenuSelection,
|
||||||
|
|||||||
Reference in New Issue
Block a user