|
@@ -521,12 +521,14 @@ void App::timerEvent(QTimerEvent *e)
|
|
|
|
|
|
// HostNames scheduled daily refresh
|
|
// HostNames scheduled daily refresh
|
|
int currentHour = QTime::currentTime().hour();
|
|
int currentHour = QTime::currentTime().hour();
|
|
- if(currentHour == 21 && !myHostNamesRequested)
|
|
|
|
|
|
+ int refreshHour = Settings::globalInstance()->refreshHostNamesHour();
|
|
|
|
+ if(currentHour == refreshHour && !myHostNamesRequested)
|
|
{
|
|
{
|
|
|
|
+ print("Refreshing hostname cache...\n");
|
|
requestCachedHostNames();
|
|
requestCachedHostNames();
|
|
myHostNamesRequested = true;
|
|
myHostNamesRequested = true;
|
|
}
|
|
}
|
|
- else if(currentHour != 21 && myHostNamesRequested)
|
|
|
|
|
|
+ else if(currentHour != refreshHour && myHostNamesRequested)
|
|
{
|
|
{
|
|
myHostNamesRequested = false;
|
|
myHostNamesRequested = false;
|
|
}
|
|
}
|