GUI: Limit application name's max length. Limit the application name in Applications-dialog to 100 chars. Nobody should need longer names especially when the application name is shown as a menuitem.

This commit is contained in:
Kimmo Varis 2009-06-06 13:07:20 +03:00
parent db17236000
commit 3142a73fd9
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ ApplicationDialog::ApplicationDialog(const QString &name,
{ {
QVBoxLayout *layout = new QVBoxLayout(); QVBoxLayout *layout = new QVBoxLayout();
mName = new QLineEdit(name); mName = new QLineEdit(name);
mName->setMaxLength(100); // Should be plenty for app name
mPath = new QLineEdit(path); mPath = new QLineEdit(path);
QString guide = tr("Here you can add applications that can open error files.\n" \ QString guide = tr("Here you can add applications that can open error files.\n" \