summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp26
-rw-r--r--core/launcher/mediummountgui.h5
2 files changed, 28 insertions, 3 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp
index 2454efa..8307eb6 100644
--- a/core/launcher/mediummountgui.cpp
+++ b/core/launcher/mediummountgui.cpp
@@ -57,2 +57,6 @@ bool MediumMountGui::check() {
57 57
58QStringList MediumMountGui::dirs() {
59 QStringList list = QStringList::split(",", limittodirs );
60 return list;
61}
58 62
@@ -71,3 +75,18 @@ void MediumMountGui::writeConfig() {
71 cfg.setGroup("dirs"); 75 cfg.setGroup("dirs");
72 cfg.writeEntry("dirs", "/"); 76 cfg.writeEntry("dirs", "/");
77
78
79 if (checkmimeaudio) {
80 mimeTypeList += ("audio//*");
81 }
82 if (checkmimetext) {
83 mimeTypeList += ("text//*");
84 }
85 if (checkmimeaudio) {
86 mimeTypeList += ("video//*");
87 }
88 if (checkmimeaudio) {
89 mimeTypeList += ("image//*");
90 }
91
73} 92}
@@ -159,2 +178,7 @@ void MediumMountGui::yesPressed() {
159 178
179
180QStringList MediumMountGui::mimeTypes(){
181 return mimeTypeList;
182}
183
160void MediumMountGui::noPressed() { 184void MediumMountGui::noPressed() {
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h
index 700a922..a7f3701 100644
--- a/core/launcher/mediummountgui.h
+++ b/core/launcher/mediummountgui.h
@@ -40,3 +40,4 @@ public:
40 bool check(); 40 bool check();
41 41 QStringList mimeTypes();
42 QStringList dirs();
42private: 43private:
@@ -58,3 +59,3 @@ private:
58QString limittodirs; 59QString limittodirs;
59 60QStringList mimeTypeList;
60 61