Commit d45bedbb authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fix CoWow errors disappearing after 1 sec.

parent 5538deba
...@@ -174,7 +174,9 @@ void CoWowQt::DisplayError( ...@@ -174,7 +174,9 @@ void CoWowQt::DisplayError(
msgBox.setDefaultButton(button); msgBox.setDefaultButton(button);
} }
QTimer::singleShot(1000, &msgBox, SLOT(close())); if (m_autoremove) {
QTimer::singleShot(1000, &msgBox, SLOT(close()));
}
msgBox.exec(); msgBox.exec();
} }
......
...@@ -566,7 +566,7 @@ void EvList::event_alarm(mh_sMessage* msg) ...@@ -566,7 +566,7 @@ void EvList::event_alarm(mh_sMessage* msg)
return; return;
if (type != ev_eType_EventList) if (type != ev_eType_EventList)
log_info("Ev, New alarm %d %d", event->Info.Id.Nix, event->Info.Id.Idx); log_info("Ev, New alarm %d %d\n", event->Info.Id.Nix, event->Info.Id.Idx);
sts = get_destination( sts = get_destination(
net_NetTimeToTime(&event->Info.EventTime), (void**)&dest); net_NetTimeToTime(&event->Info.EventTime), (void**)&dest);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment