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) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp
index 2dfc0fd..413e80b 100644
--- a/noncore/apps/opie-console/profileeditordialog.cpp
+++ b/noncore/apps/opie-console/profileeditordialog.cpp
@@ -15,3 +15,3 @@ namespace {
void setCurrent( const QString& str, QComboBox* bo ) {
- for (uint i = 0; i < bo->count(); i++ ) {
+ for (int i = 0; i < bo->count(); i++ ) {
if ( bo->text(i) == str ) {
@@ -20,5 +20,3 @@ namespace {
}
- }
-
-
+ };
}
@@ -183,3 +181,5 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
- if ( m_con ) {
+ if ( !m_con ) {
+ m_con = new NoOptions( str, m_tabCon, "name");
+ }
m_con->load( m_prof );
@@ -187,12 +187,5 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
- if(!m_showconntab)
- {
tabWidget->addTab( m_tabCon, "", QObject::tr("Connection") );
tabWidget->setCurrentTab( tabprof );
- m_showconntab = 1;
- }
- } else {
- tabWidget->removePage( m_tabCon );
- m_showconntab = 0;
- }
+
}