X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/553c85e336b9ebad47295306b37d4625d7db218b..093efca22dfd247f06e2a669ad968300e71ef08d:/src/generalviewsettingspage.cpp diff --git a/src/generalviewsettingspage.cpp b/src/generalviewsettingspage.cpp index 61439d323..3d0d416ff 100644 --- a/src/generalviewsettingspage.cpp +++ b/src/generalviewsettingspage.cpp @@ -66,7 +66,7 @@ GeneralViewSettingsPage::GeneralViewSettingsPage(DolphinMainWindow* mainWindow, // create 'File Previews' box QGroupBox* previewBox = new QGroupBox(i18nc("@title:group", "File Previews"), this); - QLabel* maxFileSize = new QLabel(i18n("Maximum file size:"), previewBox); + QLabel* maxFileSize = new QLabel(i18nc("@label:slider", "Maximum file size:"), previewBox); KHBox* vBox = new KHBox(previewBox); vBox->setSpacing(spacing); @@ -94,10 +94,6 @@ GeneralViewSettingsPage::GeneralViewSettingsPage(DolphinMainWindow* mainWindow, GeneralViewSettingsPage::~GeneralViewSettingsPage() { - GeneralSettings* settings = DolphinSettings::instance().generalSettings(); - settings->setDefaults(); - - loadSettings(); } void GeneralViewSettingsPage::applySettings() @@ -151,7 +147,7 @@ void GeneralViewSettingsPage::loadSettings() m_maxPreviewSize->setTickPosition(QSlider::TicksBelow); KConfigGroup globalConfig(KGlobal::config(), "PreviewSettings"); - const int maxByteSize = globalConfig.readEntry("MaximumSize", 1024 * 1024 /* 1 MB */); + const int maxByteSize = globalConfig.readEntry("MaximumSize", 5 * 1024 * 1024 /* 5 MB */); int maxMByteSize = maxByteSize / (1024 * 1024); if (maxMByteSize < 1) { maxMByteSize = 1;