zsafe (2.1.3-3) zsafe.cpp

Summary

 zsafe.cpp |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

    
download this patch

Patch contents

--- zsafe-2.1.3.orig/zsafe.cpp
+++ zsafe-2.1.3/zsafe.cpp
@@ -493,13 +493,14 @@
 // #ifndef WIN32
     // QString d1("Documents/application");
 // #else
-	QString d1(QDir::homeDirPath() + "/Documents/application");
+	QString d1(QDir::homeDirPath() + "/.zsafe");
 // #endif
     QDir pd1(d1);
     if (!pd1.exists())
     {
-       QDir pd1("Documents");
-       if (!pd1.mkdir("application", FALSE))
+       QString d1str(QDir::homeDirPath());
+       QDir pd1(d1str);
+       if (!pd1.mkdir(".zsafe", FALSE))
        {
           QMessageBox::critical( 0, tr("ZSafe"),
 #ifdef JPATCH_HDE
@@ -513,7 +514,7 @@
 // #ifndef WIN32
     // QString d2("Documents/application/zsafe");
 // #else
-	QString d2(QDir::homeDirPath() + "/Documents/application/zsafe");
+	QString d2(QDir::homeDirPath() + "/.zsafe");
 // #endif
     QDir pd2(d2);
     if (!pd2.exists())