From 9cb330883d65bba63b74379b1b31e5c8abaa3cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 7 Feb 2009 15:43:19 +0000 Subject: [PATCH] added a max length for the name text control in DriveSetup. it's atm the max value for bfs volumes. added a TODO as it should depend of the fs type. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29149 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/drivesetup/InitParamsPanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/drivesetup/InitParamsPanel.cpp b/src/apps/drivesetup/InitParamsPanel.cpp index f6feb660d2..4aeae8a4de 100644 --- a/src/apps/drivesetup/InitParamsPanel.cpp +++ b/src/apps/drivesetup/InitParamsPanel.cpp @@ -81,6 +81,8 @@ InitParamsPanel::InitParamsPanel(BWindow* window) AddCommonFilter(fEscapeFilter); fNameTC = new BTextControl("Name", NULL, NULL); + // TODO find out what is the max length for this specific FS partition name + fNameTC->TextView()->SetMaxBytes(31); BPopUpMenu* blocksizeMenu = new BPopUpMenu("Blocksize"); BMessage* message = new BMessage(MSG_BLOCK_SIZE);