author | josef <josef> | 2002-10-07 14:25:13 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-07 14:25:13 (UTC) |
commit | add436706a938a71a487db019dcd6ff236207bfc (patch) (unidiff) | |
tree | e774574de70c95f872ba190a502846c0f0bf5130 /noncore/apps/opie-console/profileeditordialog.cpp | |
parent | fa8df8b9d316f15bc089df5bde7eafb2ef10b36d (diff) | |
download | opie-add436706a938a71a487db019dcd6ff236207bfc.zip opie-add436706a938a71a487db019dcd6ff236207bfc.tar.gz opie-add436706a938a71a487db019dcd6ff236207bfc.tar.bz2 |
- first cleanups
- basic load/save works now, but none of the standard widget options is
remembered?
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index d98e589..8e63429 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -75,3 +75,3 @@ void ProfileEditorDialog::initUI() | |||
75 | 75 | ||
76 | plugin_plugin = m_fact->newConfigPlugin("serial", plugin_base, m_prof); | 76 | plugin_plugin = m_fact->newConfigPlugin("serial", plugin_base, &m_prof); |
77 | plugin_layout->add(plugin_plugin->widget()); | 77 | plugin_layout->add(plugin_plugin->widget()); |
@@ -114,2 +114,11 @@ void ProfileEditorDialog::initUI() | |||
114 | name_line->setText(m_prof.name()); | 114 | name_line->setText(m_prof.name()); |
115 | for(int i = 0; i < device_box->count(); i++) | ||
116 | { | ||
117 | device_box->setCurrentItem(i); | ||
118 | if(prof_type() == m_prof.ioLayerName()) | ||
119 | { | ||
120 | slotDevice(i); | ||
121 | break; | ||
122 | } | ||
123 | } | ||
115 | 124 | ||
@@ -129,3 +138,3 @@ void ProfileEditorDialog::slotDevice(int id) | |||
129 | 138 | ||
130 | plugin_plugin = m_fact->newConfigPlugin(prof_type(), plugin_base, m_prof); | 139 | plugin_plugin = m_fact->newConfigPlugin(prof_type(), plugin_base, &m_prof); |
131 | plugin_layout->add(plugin_plugin->widget()); | 140 | plugin_layout->add(plugin_plugin->widget()); |
@@ -154,2 +163,3 @@ void ProfileEditorDialog::accept() | |||
154 | m_prof.setName(prof_name()); | 163 | m_prof.setName(prof_name()); |
164 | m_prof.setIOLayer(prof_type()); | ||
155 | 165 | ||