summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmdoc.cpp
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwmdoc.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmdoc.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/pwmdoc.cpp b/pwmanager/pwmanager/pwmdoc.cpp
index 86b6273..129bf7b 100644
--- a/pwmanager/pwmanager/pwmdoc.cpp
+++ b/pwmanager/pwmanager/pwmdoc.cpp
@@ -57,5 +57,6 @@
#include <sys/stat.h>
+#ifndef _WIN32_
#include <unistd.h>
#include <stdint.h>
-
+#endif
@@ -507,2 +508,3 @@ PwMerror PwMDoc::saveDoc(char compress, const QString *file)
f.close();
+#ifndef _WIN32_
if (chmod(filename.latin1(),
@@ -511,2 +513,3 @@ PwMerror PwMDoc::saveDoc(char compress, const QString *file)
}
+#endif
openDocList.edit(this, getTitle().latin1());
@@ -2220,2 +2223,3 @@ bool PwMDoc::execLauncher(unsigned int category, unsigned int entryIndex)
{
+#ifndef _WIN32_
if (geteuid() == 0) {
@@ -2224,2 +2228,3 @@ bool PwMDoc::execLauncher(unsigned int category, unsigned int entryIndex)
}
+#endif
QString command(dti.dta[category].d[entryIndex].launcher.c_str());
@@ -2272,2 +2277,3 @@ bool PwMDoc::goToURL(unsigned int category, unsigned int entryIndex)
{
+#ifndef _WIN32_
if (geteuid() == 0) {
@@ -2276,2 +2282,3 @@ bool PwMDoc::goToURL(unsigned int category, unsigned int entryIndex)
}
+#endif
QString url(dti.dta[category].d[entryIndex].url.c_str());