Do not loop on color change events (#232)
Co-authored-by: Chris Rizzitello <crizzitello@ics.com>main
parent
abc79d113c
commit
6a66f15810
|
@ -155,12 +155,11 @@ void TrayManager::closeEvent(QCloseEvent* event) {
|
|||
|
||||
void TrayManager::changeEvent(QEvent *event)
|
||||
{
|
||||
if (event->type() == QEvent::ApplicationPaletteChange) {
|
||||
trayIcon->setIcon(getTrayIcon());
|
||||
QWidget::event(event);
|
||||
event->accept();
|
||||
}
|
||||
event->ignore();
|
||||
if (event->type() == QEvent::PaletteChange) {
|
||||
trayIcon->setIcon(getTrayIcon());
|
||||
event->accept();
|
||||
}
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
void TrayManager::spawnGetInfoWindow(qint64 evidenceID) {
|
||||
|
|
Loading…
Reference in New Issue