┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/viewproperties.cpp2
-rw-r--r--src/viewpropertiesdialog.cpp8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp
index fd4dfd8dd..25aa98e0e 100644
--- a/src/viewproperties.cpp
+++ b/src/viewproperties.cpp
@@ -70,8 +70,6 @@ ViewProperties::ViewProperties(const KUrl& url) :
const QString file(m_filepath + FILE_NAME);
m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
- kDebug() << "------------------ global timestamp: " << settings->viewPropsTimestamp() << endl;
-
const bool useDefaultProps = !useGlobalViewProps &&
(!QFileInfo(file).exists() ||
(m_node->timestamp() < settings->viewPropsTimestamp()));
diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp
index eceaf8048..350113a3c 100644
--- a/src/viewpropertiesdialog.cpp
+++ b/src/viewpropertiesdialog.cpp
@@ -60,6 +60,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) :
m_useAsDefault(0)
{
assert(dolphinView != 0);
+ const bool useGlobalViewProps = DolphinSettings::instance().generalSettings()->globalViewProps();
setCaption(i18n("View Properties"));
setButtons(KDialog::Ok | KDialog::Cancel | KDialog::Apply);
@@ -72,7 +73,10 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) :
QVBoxLayout* topLayout = new QVBoxLayout();
// create 'Properties' group containing view mode, sorting, sort order and show hidden files
- QGroupBox* propsBox = new QGroupBox(i18n("Properties"), main);
+ QWidget* propsBox = main;
+ if (!useGlobalViewProps) {
+ propsBox = new QGroupBox(i18n("Properties"), main);
+ }
QLabel* viewModeLabel = new QLabel(i18n("View mode:"), propsBox);
m_viewMode = new QComboBox(propsBox);
@@ -133,7 +137,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) :
// Only show the following settings if the view properties are remembered
// for each directory:
- if (!DolphinSettings::instance().generalSettings()->globalViewProps()) {
+ if (!useGlobalViewProps) {
// create 'Apply view properties to:' group
QGroupBox* applyBox = new QGroupBox(i18n("Apply view properties to:"), main);