summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp14
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;
}