From 3142a73fd99462a3c88d99fe31fdb6757fa65e80 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sat, 6 Jun 2009 13:07:20 +0300 Subject: [PATCH] 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. --- gui/applicationdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/applicationdialog.cpp b/gui/applicationdialog.cpp index 1a3ea16e6..865a31d3e 100644 --- a/gui/applicationdialog.cpp +++ b/gui/applicationdialog.cpp @@ -34,6 +34,7 @@ ApplicationDialog::ApplicationDialog(const QString &name, { QVBoxLayout *layout = new QVBoxLayout(); mName = new QLineEdit(name); + mName->setMaxLength(100); // Should be plenty for app name mPath = new QLineEdit(path); QString guide = tr("Here you can add applications that can open error files.\n" \