Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 3c1c8ea..88d5823 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -6,4 +6,5 @@ | |||
6 | #include <qtoolbar.h> | 6 | #include <qtoolbar.h> |
7 | 7 | ||
8 | #include "configdialog.h" | ||
8 | #include "metafactory.h" | 9 | #include "metafactory.h" |
9 | #include "profilemanager.h" | 10 | #include "profilemanager.h" |
@@ -15,4 +16,5 @@ MainWindow::MainWindow() { | |||
15 | m_curSession = 0; | 16 | m_curSession = 0; |
16 | m_manager = new ProfileManager(m_factory); | 17 | m_manager = new ProfileManager(m_factory); |
18 | m_manager->load(); | ||
17 | 19 | ||
18 | initUI(); | 20 | initUI(); |
@@ -105,5 +107,5 @@ ProfileManager* MainWindow::manager() { | |||
105 | } | 107 | } |
106 | void MainWindow::populateProfiles() { | 108 | void MainWindow::populateProfiles() { |
107 | manager()->load(); | 109 | m_sessionsPop->clear(); |
108 | Profile::ValueList list = manager()->all(); | 110 | Profile::ValueList list = manager()->all(); |
109 | for (Profile::ValueList::Iterator it = list.begin(); it != list.end(); | 111 | for (Profile::ValueList::Iterator it = list.begin(); it != list.end(); |
@@ -148,4 +150,13 @@ void MainWindow::slotTerminate() { | |||
148 | void MainWindow::slotConfigure() { | 150 | void MainWindow::slotConfigure() { |
149 | qWarning("configure"); | 151 | qWarning("configure"); |
152 | ConfigDialog conf( manager()->all() ); | ||
153 | conf.showMaximized(); | ||
154 | |||
155 | int ret = conf.exec(); | ||
156 | |||
157 | if ( QDialog::Accepted == ret ) { | ||
158 | manager()->setProfiles( conf.list() ); | ||
159 | populateProfiles(); | ||
160 | } | ||
150 | } | 161 | } |
151 | void MainWindow::slotClose() { | 162 | void MainWindow::slotClose() { |