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.cpp8
1 files changed, 4 insertions, 4 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 @@
-#include <opie/otabwidget.h>
-
#include "profileeditorplugins.h"
#include "metafactory.h"
@@ -58,5 +56,5 @@ void ProfileEditorDialog::initUI()
QVBoxLayout *mainLayout = new QVBoxLayout( this );
- OTabWidget *tabWidget = new OTabWidget( this );
+ tabWidget = new OTabWidget( this );
tabWidget->setTabStyle(OTabWidget::TextTab);
mainLayout->add(tabWidget);
@@ -174,7 +172,9 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
m_con = m_fact->newConnectionPlugin( str, m_tabCon );
- if (m_con ) {
+ if ( m_con ) {
m_con->load( m_prof );
m_layCon->addWidget( m_con );
+ } else {
+ tabWidget->removePage( m_tabCon );
}
}