Fix bugs:

* Database creation failed
	* UsersDialog shown on new user
This commit is contained in:
2012-04-26 20:45:01 +02:00
parent bfd16a6540
commit 28bb4c49f0
6 changed files with 26 additions and 14 deletions

View File

@@ -67,7 +67,10 @@ UsersDialog::UsersDialog(KissCount* kiss, wxUI *parent) : QDialog(0, Qt::Dialog)
_users->setFocus();
if (users_list.size() == 0)
{
OnNewUser();
throw ExceptionNewUser();
}
else
show();
}