Avoid focus on a hidden widget in RGB/HSB text fields

This commit is contained in:
David Capello 2016-11-22 12:08:55 -03:00
parent 461d311dff
commit 43a225afe0

View File

@ -260,6 +260,9 @@ void ColorPopup::selectColorType(app::Color::Type type)
case app::Color::MaskType: m_colorType.setSelectedItem(MASK_MODE); break;
}
// Remove focus from some RGB/HSB text entry
manager()->freeFocus();
m_vbox.layout();
m_vbox.invalidate();
}