author | zecke <zecke> | 2002-04-23 17:18:31 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-23 17:18:31 (UTC) |
commit | adf10e0e160b18fe329b6baccf5dc666d612fe8e (patch) (unidiff) | |
tree | afe9af2b6a884ef31ce64e22f2a6fbcfb839742a /core/launcher/mediummountgui.cpp | |
parent | 20959a35ed4ffa132643968b23d9af74003b41a2 (diff) | |
download | opie-adf10e0e160b18fe329b6baccf5dc666d612fe8e.zip opie-adf10e0e160b18fe329b6baccf5dc666d612fe8e.tar.gz opie-adf10e0e160b18fe329b6baccf5dc666d612fe8e.tar.bz2 |
fix the bugs
Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/mediummountgui.cpp | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp index e0acf4e..8cc2411 100644 --- a/core/launcher/mediummountgui.cpp +++ b/core/launcher/mediummountgui.cpp | |||
@@ -16,2 +16,4 @@ | |||
16 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
17 | #include <qpe/config.h> | ||
18 | |||
17 | #include <opie/oconfig.h> | 19 | #include <opie/oconfig.h> |
@@ -22,6 +24,6 @@ | |||
22 | 24 | ||
23 | MediumMountGui::MediumMountGui( const QString &path ,QWidget* parent, const char* name, bool modal, WFlags fl ) | 25 | MediumMountGui::MediumMountGui( Config *cfg, const QString &path ,QWidget* parent, const char* name, bool , WFlags ) |
24 | : QDialog( parent, name, true ) { | 26 | : QDialog( parent, name, true ) { |
25 | 27 | ||
26 | 28 | m_cfg = cfg; | |
27 | QWidget *d = QApplication::desktop(); | 29 | QWidget *d = QApplication::desktop(); |
@@ -39,15 +41,15 @@ void MediumMountGui::readConfig(){ | |||
39 | 41 | ||
40 | OConfig cfg (mediumPath +"/.opiestorage.cf"); | 42 | //OConfig cfg (mediumPath +"/.opiestorage.cf"); |
41 | cfg.setGroup("main"); | 43 | m_cfg->setGroup("main"); |
42 | checkagain = cfg.readBoolEntry("check", false); | 44 | checkagain = m_cfg->readBoolEntry("check", false); |
43 | 45 | ||
44 | cfg.setGroup("mimetypes"); | 46 | m_cfg->setGroup("mimetypes"); |
45 | checkmimeaudio = cfg.readBoolEntry("audio", true); | 47 | checkmimeaudio = m_cfg->readBoolEntry("audio", true); |
46 | checkmimeimage = cfg.readBoolEntry("image", true); | 48 | checkmimeimage = m_cfg->readBoolEntry("image", true); |
47 | checkmimetext = cfg.readBoolEntry("text", true); | 49 | checkmimetext = m_cfg->readBoolEntry("text", true); |
48 | checkmimevideo = cfg.readBoolEntry("video", true); | 50 | checkmimevideo = m_cfg->readBoolEntry("video", true); |
49 | checkmimeall = cfg.readBoolEntry("all", true); | 51 | checkmimeall = m_cfg->readBoolEntry("all", true); |
50 | 52 | ||
51 | cfg.setGroup("dirs"); | 53 | m_cfg->setGroup("dirs"); |
52 | limittodirs = cfg.readEntry("dirs", ""); | 54 | limittodirs = m_cfg->readEntry("dirs", ""); |
53 | } | 55 | } |
@@ -65,17 +67,17 @@ void MediumMountGui::writeConfig(bool autocheck) { | |||
65 | 67 | ||
66 | OConfig cfg (mediumPath +"/.opiestorage.cf"); | 68 | //OConfig cfg (mediumPath +"/.opiestorage.cf"); |
67 | cfg.setGroup("main"); | 69 | m_cfg->setGroup("main"); |
68 | cfg.writeEntry("check", AskBox->isChecked() ); | 70 | m_cfg->writeEntry("check", AskBox->isChecked() ); |
69 | cfg.writeEntry("autocheck", autocheck ); | 71 | m_cfg->writeEntry("autocheck", autocheck ); |
70 | 72 | ||
71 | cfg.setGroup("mimetypes"); | 73 | m_cfg->setGroup("mimetypes"); |
72 | 74 | ||
73 | cfg.writeEntry("audio", CheckBoxAudio->isChecked() ); | 75 | m_cfg->writeEntry("audio", CheckBoxAudio->isChecked() ); |
74 | cfg.writeEntry("image",CheckBoxImage->isChecked() ); | 76 | m_cfg->writeEntry("image",CheckBoxImage->isChecked() ); |
75 | cfg.writeEntry("text",CheckBoxImage->isChecked() ); | 77 | m_cfg->writeEntry("text",CheckBoxImage->isChecked() ); |
76 | cfg.writeEntry("video",CheckBoxVideo->isChecked() ); | 78 | m_cfg->writeEntry("video",CheckBoxVideo->isChecked() ); |
77 | cfg.writeEntry("all",CheckBoxAll->isChecked() ); | 79 | m_cfg->writeEntry("all",CheckBoxAll->isChecked() ); |
78 | 80 | ||
79 | cfg.setGroup("dirs"); | 81 | m_cfg->setGroup("dirs"); |
80 | cfg.writeEntry("dirs", ""); | 82 | m_cfg->writeEntry("dirs", ""); |
81 | 83 | ||
@@ -100,3 +102,3 @@ void MediumMountGui::writeConfig(bool autocheck) { | |||
100 | } | 102 | } |
101 | cfg.write(); // not really needed here but just to be sure | 103 | m_cfg->write(); // not really needed here but just to be sure |
102 | } | 104 | } |