changeset 208 | 973b5888eec6 |
parent 207 | ae931a692b54 |
child 213 | 2e0b94e12bfc |
1.1 --- a/OpenSecurity/bin/ui/format_drive_dialog.py Wed Jun 25 22:26:34 2014 +0200 1.2 +++ b/OpenSecurity/bin/ui/format_drive_dialog.py Thu Jun 26 12:14:08 2014 +0200 1.3 @@ -108,6 +108,9 @@ 1.4 1.5 # pick the password 1.6 init_data['password'] = self.ui.edtPassword.text() 1.7 + if len(init_data['password']) == 0: 1.8 + QtGui.QMessageBox.critical(self, 'Format error', 'Please specify a password.') 1.9 + return 1.10 1.11 # read the content of the keyfile 1.12 keyfile_content = ''