summaryrefslogtreecommitdiff
path: root/core/launcher/mediummountgui.cpp
Unidiff
Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp10
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
@@ -79,11 +79,12 @@ void MediumMountGui::writeConfig(bool autocheck) {
79 cfg.setGroup("dirs"); 79 cfg.setGroup("dirs");
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//*");
89 } 90 }
@@ -96,12 +97,13 @@ void MediumMountGui::writeConfig(bool autocheck) {
96 if (checkmimeimage) { 97 if (checkmimeimage) {
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
106void MediumMountGui::startGui() { 108void MediumMountGui::startGui() {
107 109