┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewpropertiesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewpropertiesdialog.cpp')
-rw-r--r--src/viewpropertiesdialog.cpp8
1 files changed, 6 insertions, 2 deletions
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);