author | harlekin <harlekin> | 2002-10-17 17:39:06 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-17 17:39:06 (UTC) |
commit | ec202e5d2956f2cde0f2a6be5c452bd67347e21f (patch) (unidiff) | |
tree | 54d5868f9c71ad953360b911f9c50ff21e070d03 /noncore/apps/opie-console/profileeditordialog.cpp | |
parent | fb44c86f420d9a77d7364ac8b8bbd25b0f6ab09a (diff) | |
download | opie-ec202e5d2956f2cde0f2a6be5c452bd67347e21f.zip opie-ec202e5d2956f2cde0f2a6be5c452bd67347e21f.tar.gz opie-ec202e5d2956f2cde0f2a6be5c452bd67347e21f.tar.bz2 |
only show connection tab in profile config dialog if the current layer has connections - 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.cpp | 8 |
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 | |||
@@ -8,4 +8,2 @@ | |||
8 | 8 | ||
9 | #include <opie/otabwidget.h> | ||
10 | |||
11 | #include "profileeditorplugins.h" | 9 | #include "profileeditorplugins.h" |
@@ -59,3 +57,3 @@ void ProfileEditorDialog::initUI() | |||
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); |
@@ -175,5 +173,7 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) { | |||
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 | } |