Logic fix for icon activation.

Covers all possible cases for icon activation in system tray.
use equal. Qt::WindowStates is a primitive (enum) This style is more for objects