summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp8
-rw-r--r--noncore/apps/opie-console/profileeditordialog.h2
-rw-r--r--noncore/apps/opie-console/serialconfigwidget.cpp2
3 files changed, 7 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp
index b709cf3..5c5c2b3 100644
--- a/noncore/apps/opie-console/profileeditordialog.cpp
+++ b/noncore/apps/opie-console/profileeditordialog.cpp
@@ -7,6 +7,4 @@
7 7
8 8
9#include <opie/otabwidget.h>
10
11#include "profileeditorplugins.h" 9#include "profileeditorplugins.h"
12#include "metafactory.h" 10#include "metafactory.h"
@@ -58,5 +56,5 @@ void ProfileEditorDialog::initUI()
58 56
59 QVBoxLayout *mainLayout = new QVBoxLayout( this ); 57 QVBoxLayout *mainLayout = new QVBoxLayout( this );
60 OTabWidget *tabWidget = new OTabWidget( this ); 58 tabWidget = new OTabWidget( this );
61 tabWidget->setTabStyle(OTabWidget::TextTab); 59 tabWidget->setTabStyle(OTabWidget::TextTab);
62 mainLayout->add(tabWidget); 60 mainLayout->add(tabWidget);
@@ -174,7 +172,9 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
174 m_con = m_fact->newConnectionPlugin( str, m_tabCon ); 172 m_con = m_fact->newConnectionPlugin( str, m_tabCon );
175 173
176 if (m_con ) { 174 if ( m_con ) {
177 m_con->load( m_prof ); 175 m_con->load( m_prof );
178 m_layCon->addWidget( m_con ); 176 m_layCon->addWidget( m_con );
177 } else {
178 tabWidget->removePage( m_tabCon );
179 } 179 }
180} 180}
diff --git a/noncore/apps/opie-console/profileeditordialog.h b/noncore/apps/opie-console/profileeditordialog.h
index 3b67bb3..6fde839 100644
--- a/noncore/apps/opie-console/profileeditordialog.h
+++ b/noncore/apps/opie-console/profileeditordialog.h
@@ -3,4 +3,5 @@
3 3
4#include <qdialog.h> 4#include <qdialog.h>
5#include <opie/otabwidget.h>
5 6
6#include "profile.h" 7#include "profile.h"
@@ -47,4 +48,5 @@ private:
47 ProfileDialogWidget* m_con, *m_term; 48 ProfileDialogWidget* m_con, *m_term;
48 QHBoxLayout *m_layCon, *m_layTerm; 49 QHBoxLayout *m_layCon, *m_layTerm;
50 OTabWidget *tabWidget;
49}; 51};
50 52
diff --git a/noncore/apps/opie-console/serialconfigwidget.cpp b/noncore/apps/opie-console/serialconfigwidget.cpp
index d216c92..1e97a24 100644
--- a/noncore/apps/opie-console/serialconfigwidget.cpp
+++ b/noncore/apps/opie-console/serialconfigwidget.cpp
@@ -57,5 +57,5 @@ void SerialConfigWidget::load( const Profile& prof ) {
57 m_base->setFlow( IOLayerBase::Software ); 57 m_base->setFlow( IOLayerBase::Software );
58 } else { 58 } else {
59 m_base->setFlow( IOLayerBase::None ); 59 m_base->setFlow( IOLayerBase::None );
60 } 60 }
61 61