Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index 7c15560..5d39d96 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -35,12 +35,13 @@ void ProfileManager::load() { | |||
35 | for ( it = groups.begin(); it != groups.end(); ++it ) { | 35 | for ( it = groups.begin(); it != groups.end(); ++it ) { |
36 | conf.setGroup( (*it) ); | 36 | conf.setGroup( (*it) ); |
37 | Profile prof; | 37 | Profile prof; |
38 | prof.setName( conf.readEntry("name") ); | 38 | prof.setName( conf.readEntry("name") ); |
39 | prof.setIOLayer( conf.readEntry("iolayer").utf8() ); | 39 | prof.setIOLayer( conf.readEntry("iolayer").utf8() ); |
40 | prof.setTerminalName( conf.readEntry("term").utf8() ); | 40 | prof.setTerminalName( conf.readEntry("term").utf8() ); |
41 | prof.setAutoConnect( conf.readBoolEntry("autoConnect") ); | ||
41 | prof.setBackground( conf.readNumEntry("back") ); | 42 | prof.setBackground( conf.readNumEntry("back") ); |
42 | prof.setForeground( conf.readNumEntry("fore") ); | 43 | prof.setForeground( conf.readNumEntry("fore") ); |
43 | prof.setTerminal( conf.readNumEntry("terminal") ); | 44 | prof.setTerminal( conf.readNumEntry("terminal") ); |
44 | 45 | ||
45 | // THIS is evil because all data get's reset | 46 | // THIS is evil because all data get's reset |
46 | prof.setConf( conf.items( (*it) ) ); | 47 | prof.setConf( conf.items( (*it) ) ); |
@@ -111,12 +112,13 @@ void ProfileManager::save( ) { | |||
111 | 112 | ||
112 | conf.writeEntry( "name", (*it2).name() ); | 113 | conf.writeEntry( "name", (*it2).name() ); |
113 | QString str = QString::fromUtf8( (*it2).ioLayerName() ); | 114 | QString str = QString::fromUtf8( (*it2).ioLayerName() ); |
114 | 115 | ||
115 | conf.writeEntry( "iolayer", str ); | 116 | conf.writeEntry( "iolayer", str ); |
116 | conf.writeEntry( "term", QString::fromUtf8( (*it2).terminalName() ) ); | 117 | conf.writeEntry( "term", QString::fromUtf8( (*it2).terminalName() ) ); |
118 | conf.writeEntry( "autoConnect", (*it2).autoConnect()); | ||
117 | conf.writeEntry( "back", (*it2).background() ); | 119 | conf.writeEntry( "back", (*it2).background() ); |
118 | conf.writeEntry( "fore", (*it2).foreground() ); | 120 | conf.writeEntry( "fore", (*it2).foreground() ); |
119 | conf.writeEntry( "terminal", (*it2).terminal() ); | 121 | conf.writeEntry( "terminal", (*it2).terminal() ); |
120 | } | 122 | } |
121 | } | 123 | } |
122 | void ProfileManager::setProfiles( const Profile::ValueList& list ) { | 124 | void ProfileManager::setProfiles( const Profile::ValueList& list ) { |