[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/dolphin/src/settings
From: Peter Penz <peter.penz () gmx ! at>
Date: 2010-06-12 12:57:36
Message-ID: 20100612125736.181BFAC8CF () svn ! kde ! org
[Download RAW message or body]
SVN commit 1137339 by ppenz:
Fix issue, that the file size maximum for non-local previews is read wrong and applied to the local size initially
M +3 -6 previewssettingspage.cpp
--- trunk/KDE/kdebase/apps/dolphin/src/settings/previewssettingspage.cpp #1137338:1137339
@@ -128,7 +128,7 @@
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 @@
<< 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"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic