fixed some heavy pointermistakes
This commit is contained in:
@@ -2,9 +2,14 @@
|
||||
#include "unistd.h"
|
||||
Countdown::Countdown()
|
||||
{
|
||||
this->running = 1;
|
||||
}
|
||||
void Countdown::setStop(){
|
||||
this->running = 0;
|
||||
}
|
||||
|
||||
void Countdown::run(){
|
||||
while(1){
|
||||
while(this->running){
|
||||
sleep(1);
|
||||
emit CountdownUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user