summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditordialog.cpp
Side-by-side diff
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
@@ -197,6 +197,16 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
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 );
}