diff options
| author | Peter Penz <[email protected]> | 2010-06-12 12:57:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-06-12 12:57:35 +0000 |
| commit | d7b275ee2e36fd46fa2ec2b23a74f876a5dcd988 (patch) | |
| tree | 726f8c959b5a4d074a56af97f9eccadfcfd33cf3 /src/settings | |
| parent | 06fb789c2b7c435dce7cf1ff11bf045f3ebc84bf (diff) | |
Fix issue, that the file size maximum for non-local previews is read wrong and applied to the local size initially
svn path=/trunk/KDE/kdebase/apps/; revision=1137339
Diffstat (limited to 'src/settings')
| -rw-r--r-- | src/settings/previewssettingspage.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/settings/previewssettingspage.cpp b/src/settings/previewssettingspage.cpp index c6ad08161..1d50f41f0 100644 --- a/src/settings/previewssettingspage.cpp +++ b/src/settings/previewssettingspage.cpp @@ -128,7 +128,7 @@ void PreviewsSettingsPage::applySettings() globalConfig.writeEntry("MaximumSize", m_localFileSizeBox->value() * 1024 * 1024, KConfigBase::Normal | KConfigBase::Global); - globalConfig.writeEntry("RemoteMaximumSize", + globalConfig.writeEntry("MaximumRemoteSize", m_remoteFileSizeBox->value() * 1024 * 1024, KConfigBase::Normal | KConfigBase::Global); globalConfig.sync(); @@ -169,16 +169,13 @@ void PreviewsSettingsPage::loadSettings() << QLatin1String("imagethumbnail") << QLatin1String("jpegthumbnail")); - // TODO: The default value of 5 MB must match with the default value inside - // kdelibs/kio/kio/previewjob.cpp. Maybe a static getter method in PreviewJob - // should be added for getting the default size? const int maxLocalByteSize = globalConfig.readEntry("MaximumSize", MaxLocalPreviewSize * 1024 * 1024); const int maxLocalMByteSize = maxLocalByteSize / (1024 * 1024); m_localFileSizeBox->setValue(maxLocalMByteSize); - const int maxRemoteByteSize = globalConfig.readEntry("MaximumSize", MaxRemotePreviewSize * 1024 * 1024); + const int maxRemoteByteSize = globalConfig.readEntry("MaximumRemoteSize", MaxRemotePreviewSize * 1024 * 1024); const int maxRemoteMByteSize = maxRemoteByteSize / (1024 * 1024); - m_localFileSizeBox->setValue(maxRemoteMByteSize); + m_remoteFileSizeBox->setValue(maxRemoteMByteSize); } #include "previewssettingspage.moc" |
