2022-05-11 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdlibrary(1) that caused the disk free space
	gauge to be disabled.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-05-11 14:39:27 -04:00
parent f90acb48eb
commit 2f4ccff00d
4 changed files with 10 additions and 12 deletions

View File

@ -23065,3 +23065,6 @@
2022-05-11 Fred Gleason <fredg@paravelsystems.com> 2022-05-11 Fred Gleason <fredg@paravelsystems.com>
* Updated the 'Managing the Current User with RDLogin' chapter of * Updated the 'Managing the Current User with RDLogin' chapter of
the Operations Guide. the Operations Guide.
2022-05-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdlibrary(1) that caused the disk free space
gauge to be disabled.

View File

@ -2,7 +2,7 @@
// //
// Disk Gauge Widget for RDLibrary. // Disk Gauge Widget for RDLibrary.
// //
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // 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 // it under the terms of the GNU General Public License version 2 as
@ -20,7 +20,6 @@
#include <rd.h> #include <rd.h>
#include <rdapplication.h> #include <rdapplication.h>
#include <rdaudiostore.h> #include <rdaudiostore.h>
#include "disk_gauge.h" #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->setAlignment(Qt::AlignCenter);
disk_space_label->setDisabled(true); disk_space_label->setDisabled(true);
/*
update();
*/
disk_timer=new QTimer(this); disk_timer=new QTimer(this);
disk_timer->setSingleShot(true); disk_timer->setSingleShot(true);
connect(disk_timer,SIGNAL(timeout()),this,SLOT(update())); connect(disk_timer,SIGNAL(timeout()),this,SLOT(update()));
disk_timer->start(100);
} }

View File

@ -2,7 +2,7 @@
// //
// Disk Gauge Widget for RDLibrary. // Disk Gauge Widget for RDLibrary.
// //
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // 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 // it under the terms of the GNU General Public License version 2 as
@ -23,12 +23,12 @@
#include <stdint.h> #include <stdint.h>
#include <qlabel.h> #include <QLabel>
#include <qprogressbar.h> #include <QProgressBar>
#include <rdwidget.h> #include <rdwidget.h>
#define DISK_GAUGE_UPDATE_INTERVAL 60000 #define DISK_GAUGE_UPDATE_INTERVAL 360000
class DiskGauge : public RDWidget class DiskGauge : public RDWidget
{ {

View File

@ -2,7 +2,7 @@
// //
// The Library Utility for Rivendell. // The Library Utility for Rivendell.
// //
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // 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 // it under the terms of the GNU General Public License version 2 as
@ -315,6 +315,7 @@ void MainWidget::userData()
} }
SetCaption(rda->ripc()->user()); SetCaption(rda->ripc()->user());
disk_gauge->update();
} }