Permalink
Browse files

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

  • Loading branch information...
1 parent 22e858d commit 02d072d17df1ff186536556ccb93ea56efd9cb15 @kmoore134 kmoore134 committed Nov 22, 2013
Showing with 6 additions and 3 deletions.
  1. +3 −3 src-qt4/pc-usermanager/changepasscode.cpp
  2. +3 −0 src-qt4/pc-usermanager/simpledlgcode.cpp
@@ -54,13 +54,13 @@ void ChangePassCode::commit()
close();
break;
case 1:
- QMessageBox::critical(this, tr("You must specify a password"), tr("Error changing password..."));
+ QMessageBox::critical(this, tr("You must specify a password"), tr("You must specify a password"));
break;
case 2:
- QMessageBox::critical(this, tr("The passwords didn't match. Both boxes most contain the same value."), tr("Error changing password..."));
+ 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."));
break;
case 3:
- QMessageBox::critical(this, tr("Invalid password, please choose another."), tr("Error changing password..."));
+ QMessageBox::critical(this, tr("Invalid password, please choose another."), tr("Invalid password, please choose another."));
break;
}
}
@@ -171,6 +171,9 @@ void SimpleDlgCode::changeRootPassword()
void SimpleDlgCode::removeUser()
{
QString username = userList->currentItem()->text().section(" ", 0, 0);
+ if ( username.isEmpty() )
+ return;
+
User *user = back->getUser(username);
QString home = user->getHome();
int answer = QMessageBox::question(this,

0 comments on commit 02d072d

Please sign in to comment.