mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
src/gui/widget/hintbox.cpp: connect OnTimer slot only if is still empty
Prevent multiple connections to slot. Only to be sure.
This commit is contained in:
@@ -194,8 +194,9 @@ void CHintBox::enableTimeOutBar(bool enable)
|
|||||||
timeout_pb->setValues(0, 100*timeout);
|
timeout_pb->setValues(0, 100*timeout);
|
||||||
if (!timeout_pb_timer) {
|
if (!timeout_pb_timer) {
|
||||||
timeout_pb_timer = new CComponentsTimer(1, true);
|
timeout_pb_timer = new CComponentsTimer(1, true);
|
||||||
timeout_pb_timer->setThreadName("hb:tmoutbar");
|
timeout_pb_timer->setThreadName("hb:timeoutbar");
|
||||||
}
|
}
|
||||||
|
if (timeout_pb_timer->OnTimer.empty())
|
||||||
timeout_pb_timer->OnTimer.connect(sigc::mem_fun0(this, &CHintBox::showTimeOutBar));
|
timeout_pb_timer->OnTimer.connect(sigc::mem_fun0(this, &CHintBox::showTimeOutBar));
|
||||||
timeout_pb_timer->startTimer();
|
timeout_pb_timer->startTimer();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user