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:
parent
db17236000
commit
3142a73fd9
|
@ -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" \
|
||||||
|
|
Loading…
Reference in New Issue