diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-24 10:51:58 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-24 10:51:58 +0100 |
commit | 288b838f75f91205d81d5d46201eae90e8abd51a (patch) | |
tree | a2407cbb316c3f7c60292e3e790b4b8cfa750892 /src/mainwindow.cpp | |
parent | Cleaning AdblockManager::loadRules slot (diff) | |
download | rekonq-288b838f75f91205d81d5d46201eae90e8abd51a.tar.xz |
This commit should finally fix settings handling
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d15ce0c4..68469cdd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -543,6 +543,11 @@ void MainWindow::setupPanels() void MainWindow::updateConfiguration() { + kDebug() << "======================================================================================================================"; + kDebug() << "======================================================================================================================"; + kDebug() << "======================================================================================================================"; + kDebug() << "======================================================================================================================"; + // ============== General ================== m_view->updateTabBar(); @@ -639,14 +644,13 @@ void MainWindow::preferences() return; // we didn't find an instance of this dialog, so lets create it - QWeakPointer<SettingsDialog> s = new SettingsDialog(this); + QPointer<SettingsDialog> s = new SettingsDialog(this); // keep us informed when the user changes settings - connect(s.data(), SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration())); + connect(s, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration())); - s.data()->exec(); - delete s.data(); - s.clear(); + s->exec(); + delete s; } |