Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/mediummountgui.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp index e3fa5bd..f0de85b 100644 --- a/core/launcher/mediummountgui.cpp +++ b/core/launcher/mediummountgui.cpp | |||
@@ -80,9 +80,10 @@ void MediumMountGui::writeConfig(bool autocheck) { | |||
80 | cfg.writeEntry("dirs", ""); | 80 | cfg.writeEntry("dirs", ""); |
81 | 81 | ||
82 | 82 | ||
83 | // if all is checked then add only "null" to the list. | 83 | // if all is checked then add only "QString::null" to the list. |
84 | if (checkmimeall) { | 84 | if (checkmimeall) { |
85 | mimeTypeList += ("null"); | 85 | mimeTypeList.clear(); |
86 | mimeTypeList += QString::null; | ||
86 | } else { | 87 | } else { |
87 | if (checkmimeaudio) { | 88 | if (checkmimeaudio) { |
88 | mimeTypeList += ("audio//*"); | 89 | mimeTypeList += ("audio//*"); |
@@ -97,10 +98,11 @@ void MediumMountGui::writeConfig(bool autocheck) { | |||
97 | mimeTypeList += ("image//*"); | 98 | mimeTypeList += ("image//*"); |
98 | } | 99 | } |
99 | if (checkmimeall) { | 100 | if (checkmimeall) { |
100 | mimeTypeList << ("null"); | 101 | mimeTypeList.clear(); |
102 | mimeTypeList << QString::null; | ||
101 | } | 103 | } |
102 | } | 104 | } |
103 | cfg.write(); | 105 | cfg.write(); // not really needed here but just to be sure |
104 | } | 106 | } |
105 | 107 | ||
106 | void MediumMountGui::startGui() { | 108 | void MediumMountGui::startGui() { |