Ensure the 'MenuIndex' entry is never written into profile on disk

The current code expects that entry to be absent or has 0 as its value in the
profile on disk. However, I guess the code is not strict enough to guarantee
that assuption since I have noticed MenuIndex=N several times when checking my
profiles.

More importantly, the way how MenuIndex interacts with favorite status is
not quite staight forward.
This commit is contained in:
Jekyll Wu
2012-01-14 13:24:58 +08:00
parent 046ff647f3
commit b5dc7a982d

View File

@@ -68,6 +68,7 @@ const Profile::PropertyInfo Profile::DefaultPropertyNames[] = {
, { Icon , "Icon" , GENERAL_GROUP , QVariant::String }
, { Command , "Command" , 0 , QVariant::String }
, { Arguments , "Arguments" , 0 , QVariant::StringList }
, { MenuIndex, "MenuIndex" , 0, QVariant::String }
, { Environment , "Environment" , GENERAL_GROUP , QVariant::StringList }
, { Directory , "Directory" , GENERAL_GROUP , QVariant::String }
, { LocalTabTitleFormat , "LocalTabTitleFormat" , GENERAL_GROUP , QVariant::String }
@@ -81,7 +82,6 @@ const Profile::PropertyInfo Profile::DefaultPropertyNames[] = {
, { NewTabBehavior , "NewTabBehavior" , GENERAL_GROUP , QVariant::Int }
, { StartInCurrentSessionDir , "StartInCurrentSessionDir" , GENERAL_GROUP , QVariant::Bool }
, { ShowNewAndCloseTabButtons, "ShowNewAndCloseTabButtons" , GENERAL_GROUP , QVariant::Bool }
, { MenuIndex, "MenuIndex" , GENERAL_GROUP , QVariant::String }
, { SilenceSeconds, "SilenceSeconds" , GENERAL_GROUP , QVariant::Int }
// Appearance