[vlmc-devel] commit: ProjectManager: Declare project name as a non empty setting. ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Sun Dec 5 21:29:14 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec  5 21:19:11 2010 +0100| [2269cfc93b915e0bfdb1328feb4d825e75ad4a49] | committer: Hugo Beauzée-Luyssen 

ProjectManager: Declare project name as a non empty setting.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2269cfc93b915e0bfdb1328feb4d825e75ad4a49
---

 src/Project/ProjectManager.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 5a098c8..0568626 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -75,9 +75,10 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
                                                              QT_TRANSLATE_NOOP("PreferenceWidget", "Number of audio channels" ),
                                                              SettingValue::Flag( SettingValue::Clamped ) );
     audioChannel->setLimits( 2, 2 );
-    VLMC_CREATE_PROJECT_STRING( "general/ProjectName", unNamedProject,
+    VLMC_CREATE_PROJECT_VAR( SettingValue::String, "general/ProjectName", unNamedProject,
                                 QT_TRANSLATE_NOOP( "PreferenceWidget", "Project name" ),
-                                QT_TRANSLATE_NOOP( "PreferenceWidget", "The project name" ) );
+                                QT_TRANSLATE_NOOP( "PreferenceWidget", "The project name" ),
+                                SettingValue::Flag( SettingValue::NotEmpty ) );
 
     VLMC_CREATE_PRIVATE_PROJECT_STRING( "general/Workspace", "" );
 



More information about the Vlmc-devel mailing list