From e3bd93fe73f41730555e8c225ee51f93e29c228c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 5 Nov 2010 17:32:46 +0000 Subject: Take care to listen for changes of the settings-widgets after loadSettings() is invoked, otherwise it is possible that a change is accidently indicated. svn path=/trunk/KDE/kdebase/apps/; revision=1193350 --- src/settings/navigation/navigationsettingspage.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/settings/navigation') diff --git a/src/settings/navigation/navigationsettingspage.cpp b/src/settings/navigation/navigationsettingspage.cpp index 31f4d47c0..00ea3aad3 100644 --- a/src/settings/navigation/navigationsettingspage.cpp +++ b/src/settings/navigation/navigationsettingspage.cpp @@ -50,20 +50,16 @@ NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) : mouseBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); m_singleClick = new QRadioButton(i18nc("@option:check Mouse Settings", "Single-click to open files and folders"), mouseBox); - connect(m_singleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_doubleClick = new QRadioButton(i18nc("@option:check Mouse Settings", "Double-click to open files and folders"), mouseBox); - connect(m_doubleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); QVBoxLayout* mouseBoxLayout = new QVBoxLayout(mouseBox); mouseBoxLayout->addWidget(m_singleClick); mouseBoxLayout->addWidget(m_doubleClick); m_openArchivesAsFolder = new QCheckBox(i18nc("@option:check", "Open archives as folder"), vBox); - connect(m_openArchivesAsFolder, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_autoExpandFolders = new QCheckBox(i18nc("option:check", "Open folders during drag operations"), vBox); - connect(m_autoExpandFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // Add a dummy widget with no restriction regarding // a vertical resizing. This assures that the dialog layout @@ -73,6 +69,11 @@ NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) : topLayout->addWidget(vBox); loadSettings(); + + connect(m_singleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_doubleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_openArchivesAsFolder, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_autoExpandFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed())); } NavigationSettingsPage::~NavigationSettingsPage() -- cgit v1.3