diff --git a/ChangeLog b/ChangeLog index b2994de7..4390fd3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23065,3 +23065,6 @@ 2022-05-11 Fred Gleason * Updated the 'Managing the Current User with RDLogin' chapter of the Operations Guide. +2022-05-11 Fred Gleason + * Fixed a regression in rdlibrary(1) that caused the disk free space + gauge to be disabled. diff --git a/rdlibrary/disk_gauge.cpp b/rdlibrary/disk_gauge.cpp index 92ae8b4a..36f43ca6 100644 --- a/rdlibrary/disk_gauge.cpp +++ b/rdlibrary/disk_gauge.cpp @@ -2,7 +2,7 @@ // // Disk Gauge Widget for RDLibrary. // -// (C) Copyright 2002-2021 Fred Gleason +// (C) Copyright 2002-2022 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -20,7 +20,6 @@ #include #include - #include #include "disk_gauge.h" @@ -47,14 +46,9 @@ DiskGauge::DiskGauge(int samp_rate,int chans,QWidget *parent) disk_space_label->setAlignment(Qt::AlignCenter); disk_space_label->setDisabled(true); - /* - update(); - */ - disk_timer=new QTimer(this); disk_timer->setSingleShot(true); connect(disk_timer,SIGNAL(timeout()),this,SLOT(update())); - disk_timer->start(100); } diff --git a/rdlibrary/disk_gauge.h b/rdlibrary/disk_gauge.h index 1bee6845..cc04e79b 100644 --- a/rdlibrary/disk_gauge.h +++ b/rdlibrary/disk_gauge.h @@ -2,7 +2,7 @@ // // Disk Gauge Widget for RDLibrary. // -// (C) Copyright 2002-2019 Fred Gleason +// (C) Copyright 2002-2022 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -23,12 +23,12 @@ #include -#include -#include +#include +#include #include -#define DISK_GAUGE_UPDATE_INTERVAL 60000 +#define DISK_GAUGE_UPDATE_INTERVAL 360000 class DiskGauge : public RDWidget { diff --git a/rdlibrary/rdlibrary.cpp b/rdlibrary/rdlibrary.cpp index 3a429840..3f01e794 100644 --- a/rdlibrary/rdlibrary.cpp +++ b/rdlibrary/rdlibrary.cpp @@ -2,7 +2,7 @@ // // The Library Utility for Rivendell. // -// (C) Copyright 2002-2021 Fred Gleason +// (C) Copyright 2002-2022 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -315,6 +315,7 @@ void MainWidget::userData() } SetCaption(rda->ripc()->user()); + disk_gauge->update(); }