Do not loop on color change events (#232)

Co-authored-by: Chris Rizzitello <crizzitello@ics.com>
main
crizzitello 2023-09-22 14:30:37 -04:00 committed by GitHub
parent abc79d113c
commit 6a66f15810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -155,12 +155,11 @@ void TrayManager::closeEvent(QCloseEvent* event) {
void TrayManager::changeEvent(QEvent *event) void TrayManager::changeEvent(QEvent *event)
{ {
if (event->type() == QEvent::ApplicationPaletteChange) { if (event->type() == QEvent::PaletteChange) {
trayIcon->setIcon(getTrayIcon()); trayIcon->setIcon(getTrayIcon());
QWidget::event(event); event->accept();
event->accept(); }
} event->ignore();
event->ignore();
} }
void TrayManager::spawnGetInfoWindow(qint64 evidenceID) { void TrayManager::spawnGetInfoWindow(qint64 evidenceID) {