Appearance: enable Revert when a color is dropped

Fixes #11698.
This commit is contained in:
Adrien Destugues
2015-01-05 11:25:43 +01:00
parent 1d5b36cee2
commit e7cf3254ad
+2 -4
View File
@@ -150,8 +150,6 @@ APRView::MessageReceived(BMessage *msg)
// Received from the color fPicker when its color changes
rgb_color color = fPicker->ValueAsColor();
_SetCurrentColor(color);
Window()->PostMessage(kMsgUpdate);
break;
}
@@ -167,8 +165,6 @@ APRView::MessageReceived(BMessage *msg)
fWhich = item->ColorWhich();
rgb_color color = fCurrentSet.GetColor(fWhich);
_SetCurrentColor(color);
Window()->PostMessage(kMsgUpdate);
break;
}
@@ -266,6 +262,8 @@ APRView::_SetCurrentColor(rgb_color color)
fPicker->SetValue(color);
fColorPreview->SetColor(color);
fColorPreview->Invalidate();
Window()->PostMessage(kMsgUpdate);
}