mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-22 15:41:41 +02:00
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:
parent
bb3cd1f878
commit
34c07ffc41
@ -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/'.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user