DiskUsage: Style fixes.

This commit is contained in:
John Scipione
2014-06-05 17:52:00 -04:00
parent 4c8d238716
commit eef00544a4
+5 -3
View File
@@ -190,6 +190,7 @@ PieView::MessageReceived(BMessage* message)
if (fScanner != NULL) if (fScanner != NULL)
fScanner->Cancel(); fScanner->Cancel();
break; break;
case kBtnRescan: case kBtnRescan:
if (fVolume != NULL) { if (fVolume != NULL) {
if (fScanner != NULL) if (fScanner != NULL)
@@ -203,13 +204,13 @@ PieView::MessageReceived(BMessage* message)
case kScanDone: case kScanDone:
fWindow->EnableRescan(); fWindow->EnableRescan();
// fall-through
case kScanProgress: case kScanProgress:
Invalidate(); Invalidate();
break; break;
default: default:
BView::MessageReceived(message); BView::MessageReceived(message);
break;
} }
} }
@@ -217,8 +218,9 @@ PieView::MessageReceived(BMessage* message)
void void
PieView::MouseDown(BPoint where) PieView::MouseDown(BPoint where)
{ {
uint32 buttons;
BMessage* current = Window()->CurrentMessage(); BMessage* current = Window()->CurrentMessage();
uint32 buttons;
if (current->FindInt32("buttons", (int32*)&buttons) != B_OK) if (current->FindInt32("buttons", (int32*)&buttons) != B_OK)
buttons = B_PRIMARY_MOUSE_BUTTON; buttons = B_PRIMARY_MOUSE_BUTTON;
@@ -226,7 +228,7 @@ PieView::MouseDown(BPoint where)
if (info == NULL || info->pseudo) if (info == NULL || info->pseudo)
return; return;
if (buttons & B_PRIMARY_MOUSE_BUTTON) { if ((buttons & B_PRIMARY_MOUSE_BUTTON) != 0) {
fClicked = true; fClicked = true;
fDragStart = where; fDragStart = where;
fClickedFile = info; fClickedFile = info;