author | sandman <sandman> | 2002-07-06 22:05:23 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-07-06 22:05:23 (UTC) |
commit | 345c2059bdcfcde8c03c7ae6332b075705ac0a6f (patch) (unidiff) | |
tree | 8353a4f4ba339c4e9ff0eeccf809e0bdc759091b | |
parent | 7c069ad1b76c681282499b157ef9b23ec000947d (diff) | |
download | opie-345c2059bdcfcde8c03c7ae6332b075705ac0a6f.zip opie-345c2059bdcfcde8c03c7ae6332b075705ac0a6f.tar.gz opie-345c2059bdcfcde8c03c7ae6332b075705ac0a6f.tar.bz2 |
Fix for the "dialogs stay on taskbar after closing" bug
-rw-r--r-- | core/settings/light-and-power/light.cpp | 5 | ||||
-rw-r--r-- | core/settings/light-and-power/settings.h | 2 |
2 files changed, 7 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 | |||
@@ -130,6 +130,11 @@ void LightSettings::applyBrightness() | |||
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 | } | ||
diff --git a/core/settings/light-and-power/settings.h b/core/settings/light-and-power/settings.h index cec08e3..27c09a7 100644 --- a/core/settings/light-and-power/settings.h +++ b/core/settings/light-and-power/settings.h | |||
@@ -34,12 +34,14 @@ public: | |||
34 | LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 34 | LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
35 | ~LightSettings(); | 35 | ~LightSettings(); |
36 | 36 | ||
37 | protected: | 37 | protected: |
38 | void accept(); | 38 | void accept(); |
39 | void reject(); | 39 | void reject(); |
40 | |||
41 | void done ( int r ); | ||
40 | 42 | ||
41 | private slots: | 43 | private slots: |
42 | void applyBrightness(); | 44 | void applyBrightness(); |
43 | 45 | ||
44 | private: | 46 | private: |
45 | int initbright; | 47 | int initbright; |