2025-04-26 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compiler warnings in 'rdlogin/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2025-04-26 17:18:15 -04:00
parent bb3cd1f878
commit 34c07ffc41
2 changed files with 5 additions and 3 deletions

View File

@ -24996,3 +24996,5 @@
* Cleaned up compiler warnings in 'rdlibrary/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'rdlogedit/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'rdlogin/'.

View File

@ -2,7 +2,7 @@
//
// The User Login/Logout Utility for Rivendell.
//
// (C) Copyright 2002-2023 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2025 Fred Gleason <fredg@paravelsystems.com>
//
// 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
@ -100,8 +100,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
"order by `LOGIN_NAME`";
q=new RDSqlQuery(sql);
while(q->next()) {
if((20+fm.width(q->value(0).toString()))>login_user_width) {
login_user_width=20+fm.width(q->value(0).toString());
if((20+fm.horizontalAdvance(q->value(0).toString()))>login_user_width) {
login_user_width=20+fm.horizontalAdvance(q->value(0).toString());
}
}
delete q;