diff --git a/src/modules/tracking/TrackingJobs.cpp b/src/modules/tracking/TrackingJobs.cpp index 8652b8e6f..26f0b67aa 100644 --- a/src/modules/tracking/TrackingJobs.cpp +++ b/src/modules/tracking/TrackingJobs.cpp @@ -27,6 +27,8 @@ #include #include +#include + TrackingInstallJob::TrackingInstallJob( const QString& url ) : m_url( url ) , m_networkManager( nullptr ) @@ -79,7 +81,7 @@ TrackingInstallJob::exec() connect( &timeout, &QTimer::timeout, &loop, &QEventLoop::quit ); m_networkManager->get( request ); // The semaphore is released when data is received - timeout.start( 5000 /* ms */ ); + timeout.start( std::chrono::milliseconds( 5000 ) ); loop.exec();