Changeset 02d072d


Ignore:
Timestamp:
11/22/13 07:24:26 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4f9718b, dce0ed1
Parents:
22e858d
Message:

Fix some bugs in the usermanager relating to error output and a crash

Location:
src-qt4/pc-usermanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-usermanager/changepasscode.cpp

    r1620346 r02d072d  
    5555            break; 
    5656        case 1: 
    57             QMessageBox::critical(this, tr("You must specify a password"), tr("Error changing password...")); 
     57            QMessageBox::critical(this, tr("You must specify a password"), tr("You must specify a password")); 
    5858            break; 
    5959        case 2: 
    60             QMessageBox::critical(this, tr("The passwords didn't match. Both boxes most contain the same value."), tr("Error changing password...")); 
     60            QMessageBox::critical(this, tr("The passwords didn't match. Both boxes most contain the same value."), tr("The passwords didn't match. Both boxes most contain the same value.")); 
    6161            break; 
    6262        case 3: 
    63             QMessageBox::critical(this, tr("Invalid password, please choose another."), tr("Error changing password...")); 
     63            QMessageBox::critical(this, tr("Invalid password, please choose another."), tr("Invalid password, please choose another.")); 
    6464            break; 
    6565    } 
  • src-qt4/pc-usermanager/simpledlgcode.cpp

    r87d35b7 r02d072d  
    172172{ 
    173173    QString username = userList->currentItem()->text().section(" ", 0, 0); 
     174    if ( username.isEmpty() ) 
     175       return; 
     176 
    174177    User *user = back->getUser(username); 
    175178    QString home = user->getHome(); 
Note: See TracChangeset for help on using the changeset viewer.