┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/navigation
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-11-05 17:32:46 +0000
committerPeter Penz <[email protected]>2010-11-05 17:32:46 +0000
commite3bd93fe73f41730555e8c225ee51f93e29c228c (patch)
tree066038e28b143c77de981c3e293bd836830fb602 /src/settings/navigation
parentd83a4ce51dc3d5c5b6a61059c1ebe0c0b20f722e (diff)
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
Diffstat (limited to 'src/settings/navigation')
-rw-r--r--src/settings/navigation/navigationsettingspage.cpp9
1 files changed, 5 insertions, 4 deletions
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()