Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/mediummountgui.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp index 8307eb6..82c2d66 100644 --- a/core/launcher/mediummountgui.cpp +++ b/core/launcher/mediummountgui.cpp @@ -44,3 +44,3 @@ void MediumMountGui::readConfig(){ cfg.setGroup("mimetypes"); - checkmimeaudio = cfg.readBoolEntry("audio", false); + checkmimeaudio = cfg.readBoolEntry("audio", true); checkmimeimage = cfg.readBoolEntry("image", true); @@ -50,3 +50,3 @@ void MediumMountGui::readConfig(){ cfg.setGroup("dirs"); - limittodirs = cfg.readEntry("dirs", "/"); + limittodirs = cfg.readEntry("dirs", ""); } @@ -62,3 +62,3 @@ QStringList MediumMountGui::dirs() { -void MediumMountGui::writeConfig() { +void MediumMountGui::writeConfig(bool autocheck) { @@ -67,3 +67,4 @@ void MediumMountGui::writeConfig() { cfg.writeEntry("check", AskBox->isChecked() ); - + cfg.writeEntry("autocheck", autocheck ); + cfg.setGroup("mimetypes"); @@ -75,3 +76,3 @@ void MediumMountGui::writeConfig() { cfg.setGroup("dirs"); - cfg.writeEntry("dirs", "/"); + cfg.writeEntry("dirs", ""); @@ -174,4 +175,5 @@ void MediumMountGui::startGui() { void MediumMountGui::yesPressed() { - writeConfig(); + writeConfig(true); // and do something + accept(); } @@ -184,3 +186,4 @@ QStringList MediumMountGui::mimeTypes(){ void MediumMountGui::noPressed() { - close(); + writeConfig(false); + reject(); } |