summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.pro4
-rw-r--r--core/launcher/mediummountgui.cpp17
-rw-r--r--core/launcher/mediummountgui.h15
3 files changed, 21 insertions, 15 deletions
diff --git a/core/launcher/launcher.pro b/core/launcher/launcher.pro
index 29eaea7..146fffd 100644
--- a/core/launcher/launcher.pro
+++ b/core/launcher/launcher.pro
@@ -9,2 +9,3 @@ HEADERS = background.h \
9 qprocess.h \ 9 qprocess.h \
10 mediummountgui.h \
10 info.h \ 11 info.h \
@@ -49,2 +50,3 @@ SOURCES = background.cpp \
49 desktop.cpp \ 50 desktop.cpp \
51 mediummountgui.cpp \
50 qprocess.cpp qprocess_unix.cpp \ 52 qprocess.cpp qprocess_unix.cpp \
@@ -109,3 +111,3 @@ TARGET = qpe
109 111
110 LIBS += -lqpe -lcrypt 112 LIBS += -lqpe -lcrypt -lopie
111 113
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(){
44 cfg.setGroup("mimetypes"); 44 cfg.setGroup("mimetypes");
45 checkmimeaudio = cfg.readBoolEntry("audio", false); 45 checkmimeaudio = cfg.readBoolEntry("audio", true);
46 checkmimeimage = cfg.readBoolEntry("image", true); 46 checkmimeimage = cfg.readBoolEntry("image", true);
@@ -50,3 +50,3 @@ void MediumMountGui::readConfig(){
50 cfg.setGroup("dirs"); 50 cfg.setGroup("dirs");
51 limittodirs = cfg.readEntry("dirs", "/"); 51 limittodirs = cfg.readEntry("dirs", "");
52} 52}
@@ -62,3 +62,3 @@ QStringList MediumMountGui::dirs() {
62 62
63void MediumMountGui::writeConfig() { 63void MediumMountGui::writeConfig(bool autocheck) {
64 64
@@ -67,3 +67,4 @@ void MediumMountGui::writeConfig() {
67 cfg.writeEntry("check", AskBox->isChecked() ); 67 cfg.writeEntry("check", AskBox->isChecked() );
68 68 cfg.writeEntry("autocheck", autocheck );
69
69 cfg.setGroup("mimetypes"); 70 cfg.setGroup("mimetypes");
@@ -75,3 +76,3 @@ void MediumMountGui::writeConfig() {
75 cfg.setGroup("dirs"); 76 cfg.setGroup("dirs");
76 cfg.writeEntry("dirs", "/"); 77 cfg.writeEntry("dirs", "");
77 78
@@ -174,4 +175,5 @@ void MediumMountGui::startGui() {
174void MediumMountGui::yesPressed() { 175void MediumMountGui::yesPressed() {
175 writeConfig(); 176 writeConfig(true);
176 // and do something 177 // and do something
178 accept();
177} 179}
@@ -184,3 +186,4 @@ QStringList MediumMountGui::mimeTypes(){
184void MediumMountGui::noPressed() { 186void MediumMountGui::noPressed() {
185 close(); 187 writeConfig(false);
188 reject();
186} 189}
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h
index a7f3701..9802b29 100644
--- a/core/launcher/mediummountgui.h
+++ b/core/launcher/mediummountgui.h
@@ -19,3 +19,3 @@ class MediumMountGui : public QDialog
19public: 19public:
20 MediumMountGui( const QString &path = "/tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 ); 20 MediumMountGui( const QString &path = "tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 );
21 ~MediumMountGui(); 21 ~MediumMountGui();
@@ -45,7 +45,8 @@ private:
45 void readConfig(); 45 void readConfig();
46 void writeConfig(); 46 void writeConfig(bool checkagain);
47 47
48private slots: 48private slots:
49 void yesPressed(); 49 void yesPressed();
50 void noPressed(); 50 void noPressed();
51
51private: 52private:
@@ -58,4 +59,4 @@ private:
58 bool checkmimevideo; 59 bool checkmimevideo;
59QString limittodirs; 60 QString limittodirs;
60QStringList mimeTypeList; 61 QStringList mimeTypeList;
61 62
@@ -63,2 +64,2 @@ QStringList mimeTypeList;
63 64
64#endif \ No newline at end of file 65#endif