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)
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue