summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp12
-rw-r--r--noncore/apps/opie-console/profileeditordialog.h2
2 files changed, 11 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp
index c48ea53..d124067 100644
--- a/noncore/apps/opie-console/profileeditordialog.cpp
+++ b/noncore/apps/opie-console/profileeditordialog.cpp
@@ -62,4 +62,2 @@ void ProfileEditorDialog::initUI()
- QWidget *tabprof;
-
/* base tabs */
@@ -94,4 +92,5 @@ void ProfileEditorDialog::initUI()
+ m_showconntab = 0;
tabWidget->addTab(tabprof, "", QObject::tr("Profile"));
- tabWidget->addTab(m_tabCon, "", QObject::tr("Connection"));
+ //tabWidget->addTab(m_tabCon, "", QObject::tr("Connection"));
tabWidget->addTab(m_tabTerm, "", QObject::tr("Terminal"));
@@ -181,4 +180,11 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
m_layCon->addWidget( m_con );
+ if(!m_showconntab)
+ {
+ tabWidget->addTab( m_tabCon, "", QObject::tr("Connection") );
+ tabWidget->setCurrentTab( tabprof );
+ m_showconntab = 1;
+ }
} else {
tabWidget->removePage( m_tabCon );
+ m_showconntab = 0;
}
diff --git a/noncore/apps/opie-console/profileeditordialog.h b/noncore/apps/opie-console/profileeditordialog.h
index e01e636..cbda689 100644
--- a/noncore/apps/opie-console/profileeditordialog.h
+++ b/noncore/apps/opie-console/profileeditordialog.h
@@ -52,2 +52,4 @@ private:
OTabWidget *tabWidget;
+ QWidget *tabprof;
+ int m_showconntab;
};