summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditordialog.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp
index 061b1c2..c5c6248 100644
--- a/noncore/apps/opie-console/profileeditordialog.cpp
+++ b/noncore/apps/opie-console/profileeditordialog.cpp
@@ -146,12 +146,17 @@ void ProfileEditorDialog::accept()
146 m_prof.setName(profName()); 146 m_prof.setName(profName());
147 m_prof.setIOLayer( m_fact->internal(m_conCmb ->currentText() ) ); 147 m_prof.setIOLayer( m_fact->internal(m_conCmb ->currentText() ) );
148 m_prof.setTerminalName( m_fact->internal(m_termCmb->currentText() ) ); 148 m_prof.setTerminalName( m_fact->internal(m_termCmb->currentText() ) );
149 qWarning("Term %s %s", m_fact->internal(m_termCmb->currentText() ).data(), 149 qWarning("Term %s %s", m_fact->internal(m_termCmb->currentText() ).data(),
150 m_termCmb->currentText().latin1() ); 150 m_termCmb->currentText().latin1() );
151 151
152 if (m_con )
153 m_con->save( m_prof );
154 if (m_term )
155 m_term->save( m_prof );
156
152 QDialog::accept(); 157 QDialog::accept();
153} 158}
154 159
155 160
156QString ProfileEditorDialog::profName()const 161QString ProfileEditorDialog::profName()const
157{ 162{
@@ -178,13 +183,15 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
178} 183}
179/* 184/*
180 * we need to switch the widget 185 * we need to switch the widget
181 */ 186 */
182void ProfileEditorDialog::slotTermActivated( const QString& str ) { 187void ProfileEditorDialog::slotTermActivated( const QString& str ) {
183 delete m_term; 188 delete m_term;
184 m_term = m_fact->newTerminalPlugin( str, 0l ); 189 m_term = m_fact->newTerminalPlugin( str, m_tabTerm );
185 qWarning("past"); 190 qWarning("past");
186 191
187 if (m_term) 192 if (m_term) {
193 m_term->load(m_prof );
188 m_layTerm->addWidget( m_term ); 194 m_layTerm->addWidget( m_term );
189} 195}
196}
190 197