Skip to content

Commit

Permalink
Do not loop on color change events (#232)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Rizzitello <crizzitello@ics.com>
  • Loading branch information
crizzitello and Chris Rizzitello committed Sep 22, 2023
1 parent abc79d1 commit 6a66f15
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/traymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a66f15

Please sign in to comment.