mirror of
https://github.com/KDE/konsole.git
synced 2026-05-02 11:46:43 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user