summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditordialog.cpp
authorharlekin <harlekin>2002-10-24 13:27:07 (UTC)
committer harlekin <harlekin>2002-10-24 13:27:07 (UTC)
commit22b0ba0100376c6406d3ee0ea65b013660ebaea0 (patch) (side-by-side diff)
tree32943709e115104d036a3b4bdbc030b90075b97f /noncore/apps/opie-console/profileeditordialog.cpp
parentb007fdcf8708d377a25c93de49c4febb19651e1a (diff)
downloadopie-22b0ba0100376c6406d3ee0ea65b013660ebaea0.zip
opie-22b0ba0100376c6406d3ee0ea65b013660ebaea0.tar.gz
opie-22b0ba0100376c6406d3ee0ea65b013660ebaea0.tar.bz2
set autoconnect by default for local console mode
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp
index 9890c3e..127009b 100644
--- a/noncore/apps/opie-console/profileeditordialog.cpp
+++ b/noncore/apps/opie-console/profileeditordialog.cpp
@@ -176,48 +176,58 @@ QString ProfileEditorDialog::profName()const
{
return m_name->text();
}
QCString ProfileEditorDialog::profType()const
{
/*QStringList w = m_fact->configWidgets();
for(QStringList::Iterator it = w.begin(); it != w.end(); it++)
if(device_box->currentText() == m_fact->name((*it))) return (*it);
*/
return QCString();
}
/*
* we need to switch the widget
*/
void ProfileEditorDialog::slotConActivated( const QString& str ) {
delete m_con;
m_con = m_fact->newConnectionPlugin( str, m_svCon->viewport() );
if ( !m_con ) {
m_con = new NoOptions( str, m_svCon->viewport(), "name");
}
+
+ // FIXME ugly hack right. Right solution would be to look into the layer and see if it
+ // supports auto connect and then set it as prefered
+ //if ( ( )->layer()->supports()[0] == 1 ) {
+ if ( m_conCmb ->currentText() == "local Console" ) {
+ m_autoConnect->setChecked( true );
+ } else {
+ m_autoConnect->setChecked( false );
+ }
+
m_con->load( m_prof );
m_svCon->addChild( m_con );
}
/*
* we need to switch the widget
*/
void ProfileEditorDialog::slotTermActivated( const QString& str ) {
delete m_term;
m_term = m_fact->newTerminalPlugin( str, m_svTerm->viewport() );
if (m_term) {
m_term->load( m_prof );
m_svTerm->addChild( m_term );
}
}
void ProfileEditorDialog::slotKeyActivated(const QString &str) {
delete m_key;
m_key = m_fact->newKeyboardPlugin( str, m_tabKey );