Improved OkToProceed(), removed unused file

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-03-27 21:46:19 +00:00
parent f356aedc02
commit ed49f4afcd
2 changed files with 2 additions and 324 deletions
+2 -5
View File
@@ -7,7 +7,6 @@
* Stefano Ceccherini ([email protected])
*/
#include <stdio.h>
#include <string.h>
#include <Debug.h>
@@ -1880,12 +1879,10 @@ BMenu::OkToProceed(BMenuItem* item)
BPoint where;
ulong buttons;
GetMouse(&where, &buttons, false);
ConvertToScreen(&where);
// Quit if user releases the mouse button or moves
// the pointer over another item
// TODO: For some reason, this doesn't work
if (buttons == 0 /*|| HitTestItems(where) != item*/)
// TODO: Something's wrong: I should use ConvertToScreen() here
if (buttons == 0 || HitTestItems(/*ConvertToScreen(*/where/*)*/) != item)
proceed = false;
return proceed;