Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 960a165..b56ae11 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -128,8 +128,13 @@ void LightSettings::accept() | |||
128 | void LightSettings::applyBrightness() | 128 | void LightSettings::applyBrightness() |
129 | { | 129 | { |
130 | int bright = (brightness->maxValue()-brightness->value())*255 | 130 | int bright = (brightness->maxValue()-brightness->value())*255 |
131 | / brightness->maxValue(); | 131 | / brightness->maxValue(); |
132 | set_fl(bright); | 132 | set_fl(bright); |
133 | } | 133 | } |
134 | 134 | ||
135 | 135 | ||
136 | void LightSettings::done(int r) | ||
137 | { | ||
138 | QDialog::done(r); | ||
139 | close ( ); | ||
140 | } | ||